From bbf15aaf7c7506c88062288b3ae122b882f65e69 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 17 Nov 2021 16:14:00 +0100 Subject: common-user: Move safe-syscall.* from linux-user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move linux-user safe-syscall.S and safe-syscall-error.c to common-user so that bsd-user can also use it. Also move safe-syscall.h to include/user/. Since there is nothing here that is related to the guest, as opposed to the host, build it once. Reviewed-by: Warner Losh Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- linux-user/safe-syscall-error.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 linux-user/safe-syscall-error.c (limited to 'linux-user/safe-syscall-error.c') diff --git a/linux-user/safe-syscall-error.c b/linux-user/safe-syscall-error.c deleted file mode 100644 index 55d95ac39a..0000000000 --- a/linux-user/safe-syscall-error.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * safe-syscall-error.c: errno setting fragment - * This is intended to be invoked by safe-syscall.S - * - * Written by Richard Henderson - * Copyright (C) 2021 Red Hat, Inc. - * - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ - -#include "qemu/osdep.h" -#include "safe-syscall.h" - -/* - * This is intended to be invoked via tail-call on the error path - * from the assembly in host/arch/safe-syscall.inc.S. This takes - * care of the host specific addressing of errno. - * Return -1 to finalize the return value for safe_syscall_base. - */ -long safe_syscall_set_errno_tail(int value) -{ - errno = value; - return -1; -} -- cgit 1.4.1