Skip to content

Commit bbf15aa

Browse files
committed
common-user: Move safe-syscall.* from linux-user
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 <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent 2ac16d0 commit bbf15aa

19 files changed

+42
-15
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,6 +3079,8 @@ M: Riku Voipio <[email protected]>
30793079
S: Maintained
30803080
F: thunk.c
30813081
F: accel/tcg/user-exec*.c
3082+
F: include/user/
3083+
F: common-user/
30823084

30833085
BSD user
30843086
M: Warner Losh <[email protected]>

bsd-user/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ if not have_bsd_user
22
subdir_done()
33
endif
44

5+
common_user_inc += include_directories('.')
6+
57
bsd_user_ss.add(files(
68
'bsdload.c',
79
'elfload.c',

linux-user/host/aarch64/safe-syscall.inc.S renamed to common-user/host/aarch64/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2016 Red Hat, Inc.

linux-user/host/arm/safe-syscall.inc.S renamed to common-user/host/arm/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2016 Red Hat, Inc.

linux-user/host/i386/safe-syscall.inc.S renamed to common-user/host/i386/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2016 Red Hat, Inc.

linux-user/host/mips/safe-syscall.inc.S renamed to common-user/host/mips/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2021 Linaro, Inc.

linux-user/host/ppc64/safe-syscall.inc.S renamed to common-user/host/ppc64/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2016 Red Hat, Inc.

linux-user/host/riscv/safe-syscall.inc.S renamed to common-user/host/riscv/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2018 Linaro, Inc.

linux-user/host/s390x/safe-syscall.inc.S renamed to common-user/host/s390x/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2016 Red Hat, Inc.

linux-user/host/sparc64/safe-syscall.inc.S renamed to common-user/host/sparc64/safe-syscall.inc.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* safe-syscall.inc.S : host-specific assembly fragment
33
* to handle signals occurring at the same time as system calls.
4-
* This is intended to be included by linux-user/safe-syscall.S
4+
* This is intended to be included by common-user/safe-syscall.S
55
*
66
* Written by Richard Henderson <[email protected]>
77
* Copyright (C) 2021 Linaro, Inc.

0 commit comments

Comments
 (0)