Browse Source
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 <imp@bsdimp.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>pull/202/head
19 changed files with 42 additions and 15 deletions
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2016 Red Hat, Inc. |
* Copyright (C) 2016 Red Hat, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2016 Red Hat, Inc. |
* Copyright (C) 2016 Red Hat, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2016 Red Hat, Inc. |
* Copyright (C) 2016 Red Hat, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <richard.henderson@linaro.org> |
* Written by Richard Henderson <richard.henderson@linaro.org> |
||||
* Copyright (C) 2021 Linaro, Inc. |
* Copyright (C) 2021 Linaro, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2016 Red Hat, Inc. |
* Copyright (C) 2016 Red Hat, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2018 Linaro, Inc. |
* Copyright (C) 2018 Linaro, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <rth@twiddle.net> |
* Written by Richard Henderson <rth@twiddle.net> |
||||
* Copyright (C) 2016 Red Hat, Inc. |
* Copyright (C) 2016 Red Hat, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Written by Richard Henderson <richard.henderson@linaro.org> |
* Written by Richard Henderson <richard.henderson@linaro.org> |
||||
* Copyright (C) 2021 Linaro, Inc. |
* Copyright (C) 2021 Linaro, Inc. |
||||
@ -1,7 +1,7 @@ |
|||||
/* |
/* |
||||
* safe-syscall.inc.S : host-specific assembly fragment |
* safe-syscall.inc.S : host-specific assembly fragment |
||||
* to handle signals occurring at the same time as system calls. |
* to handle signals occurring at the same time as system calls. |
||||
* This is intended to be included by linux-user/safe-syscall.S |
* This is intended to be included by common-user/safe-syscall.S |
||||
* |
* |
||||
* Copyright (C) 2015 Timothy Edward Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
* Copyright (C) 2015 Timothy Edward Baldwin <T.E.Baldwin99@members.leeds.ac.uk> |
||||
* |
* |
||||
@ -0,0 +1,6 @@ |
|||||
|
common_user_inc += include_directories('host/' / host_arch) |
||||
|
|
||||
|
common_user_ss.add(files( |
||||
|
'safe-syscall.S', |
||||
|
'safe-syscall-error.c', |
||||
|
)) |
||||
Loading…
Reference in new issue