Skip to content

Commit

Permalink
bsd-user: Implement target_to_host_rlim and host_to_target_rlim conve…
Browse files Browse the repository at this point in the history
…rsion.

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>
  • Loading branch information
staceyson authored and bsdimp committed Oct 3, 2023
1 parent 0caa376 commit 550fc70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bsd-user/bsd-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 550fc70

Please sign in to comment.