Commit 460c579f authored by Lluís Vilanova's avatar Lluís Vilanova Committed by Riku Voipio
Browse files

build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target directories



This fixes double-definitions in linux-user builds when using the UST
tracing backend (which indirectly includes the system's "syscall.h").

Signed-off-by: default avatarLluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarRiku Voipio <riku.voipio@linaro.org>
parent 5089c7ce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

struct target_pt_regs {
    uint64_t        regs[31];
    uint64_t        sp;
@@ -11,3 +14,5 @@ struct target_pt_regs {
#define TARGET_MINSIGSTKSZ       2048
#define TARGET_MLOCKALL_MCL_CURRENT 1
#define TARGET_MLOCKALL_MCL_FUTURE  2

#endif  /* TARGET_SYSCALL_H */
+5 −0
Original line number Diff line number Diff line
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

/* default linux values for the selectors */
#define __USER_DS	(1)

@@ -255,3 +258,5 @@ struct target_pt_regs {
#define TARGET_MINSIGSTKSZ              4096
#define TARGET_MLOCKALL_MCL_CURRENT     0x2000
#define TARGET_MLOCKALL_MCL_FUTURE      0x4000

#endif  /* TARGET_SYSCALL_H */
+4 −0
Original line number Diff line number Diff line
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

/* this struct defines the way the registers are stored on the
   stack during a system call. */
@@ -48,3 +50,5 @@ struct target_pt_regs {
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_MLOCKALL_MCL_CURRENT 1
#define TARGET_MLOCKALL_MCL_FUTURE  2

#endif  /* TARGET_SYSCALL_H */
+5 −0
Original line number Diff line number Diff line
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

/* default linux values for the selectors */
#define __USER_CS	(0x23)
#define __USER_DS	(0x2B)
@@ -150,3 +153,5 @@ struct target_vm86plus_struct {
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_MLOCKALL_MCL_CURRENT 1
#define TARGET_MLOCKALL_MCL_FUTURE  2

#endif  /* TARGET_SYSCALL_H */
Loading