bsd-user: Implement target_to_host_rlim and host_to_target_rlim conversion.
Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182425.3163-8-kariem.taha2.7@gmail.com>
This commit is contained in:
parent
0caa376878
commit
550fc70189
@ -38,3 +38,13 @@ int target_to_host_resource(int code)
|
||||
return code;
|
||||
}
|
||||
|
||||
rlim_t target_to_host_rlim(abi_llong target_rlim)
|
||||
{
|
||||
return tswap64(target_rlim);
|
||||
}
|
||||
|
||||
abi_llong host_to_target_rlim(rlim_t rlim)
|
||||
{
|
||||
return tswap64(rlim);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user