On 11/13/21 5:56 AM, Warner Losh wrote:
All the *-users generally use the negative errno return codes to signal
errno for a system call.  FreeBSD's system calls, on the other hand,
returns errno, not -errno. Add ifdefs for FreeBSD to make the adjustment
on the 4 hosts that we have support for.

Signed-off-by: Warner Losh<i...@bsdimp.com>
---
  common-user/host/aarch64/safe-syscall.inc.S | 8 ++++++++
  common-user/host/arm/safe-syscall.inc.S     | 7 +++++++
  common-user/host/i386/safe-syscall.inc.S    | 9 +++++++++
  common-user/host/x86_64/safe-syscall.inc.S  | 9 +++++++++
  4 files changed, 33 insertions(+)

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

r~

Reply via email to