On 2/16/23 13:33, Warner Losh wrote:
cap_memory - Caps the memory to just below MAXINT
scale_to_guest_pages - Account for difference in host / guest page size
h2g_long_sat - converts a int64_t to a int32_t, saturating at max / min values
h2g_ulong_sat - converts a uint64_t to a uint32_t, saturating at max value

Signed-off-by: Warner Losh<i...@bsdimp.com>
---
  bsd-user/freebsd/os-sys.c | 86 +++++++++++++++++++++++++++++++++++++++
  1 file changed, 86 insertions(+)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to