qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v3 4/5] common-user: Adjust system call return on FreeBSD


From: Richard Henderson
Subject: Re: [RFC v3 4/5] common-user: Adjust system call return on FreeBSD
Date: Sun, 14 Nov 2021 10:20:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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<imp@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.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]