linux-user: Move target_signal.h generic definitions to generic/signal.h

No code change

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <1637893388-10282-2-git-send-email-gaosong@loongson.cn>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Song Gao 2021-11-26 10:23:06 +08:00 committed by Laurent Vivier
parent f93d0af88d
commit e068b57d01
16 changed files with 16 additions and 256 deletions

View File

@ -1,24 +1,6 @@
#ifndef AARCH64_TARGET_SIGNAL_H #ifndef AARCH64_TARGET_SIGNAL_H
#define AARCH64_TARGET_SIGNAL_H #define AARCH64_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_SEGV_MTEAERR 8 /* Asynchronous ARM MTE error */ #define TARGET_SEGV_MTEAERR 8 /* Asynchronous ARM MTE error */

View File

@ -1,24 +1,6 @@
#ifndef ARM_TARGET_SIGNAL_H #ifndef ARM_TARGET_SIGNAL_H
#define ARM_TARGET_SIGNAL_H #define ARM_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -1,24 +1,6 @@
#ifndef CRIS_TARGET_SIGNAL_H #ifndef CRIS_TARGET_SIGNAL_H
#define CRIS_TARGET_SIGNAL_H #define CRIS_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -55,6 +55,22 @@
#define TARGET_SIG_UNBLOCK 1 /* for unblocking signals */ #define TARGET_SIG_UNBLOCK 1 /* for unblocking signals */
#define TARGET_SIG_SETMASK 2 /* for setting the signal mask */ #define TARGET_SIG_SETMASK 2 /* for setting the signal mask */
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
/* bit-flags */ /* bit-flags */
#define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ #define TARGET_SS_AUTODISARM (1U << 31) /* disable sas during sighandling */
/* mask for all SS_xxx flags */ /* mask for all SS_xxx flags */

View File

@ -18,17 +18,6 @@
#ifndef HEXAGON_TARGET_SIGNAL_H #ifndef HEXAGON_TARGET_SIGNAL_H
#define HEXAGON_TARGET_SIGNAL_H #define HEXAGON_TARGET_SIGNAL_H
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1

View File

@ -1,24 +1,6 @@
#ifndef I386_TARGET_SIGNAL_H #ifndef I386_TARGET_SIGNAL_H
#define I386_TARGET_SIGNAL_H #define I386_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -1,24 +1,6 @@
#ifndef M68K_TARGET_SIGNAL_H #ifndef M68K_TARGET_SIGNAL_H
#define M68K_TARGET_SIGNAL_H #define M68K_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -1,24 +1,6 @@
#ifndef MICROBLAZE_TARGET_SIGNAL_H #ifndef MICROBLAZE_TARGET_SIGNAL_H
#define MICROBLAZE_TARGET_SIGNAL_H #define MICROBLAZE_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1

View File

@ -1,22 +1,6 @@
#ifndef NIOS2_TARGET_SIGNAL_H #ifndef NIOS2_TARGET_SIGNAL_H
#define NIOS2_TARGET_SIGNAL_H #define NIOS2_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/* sigaltstack controls */
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
/* Nios2 uses a fixed address on the kuser page for sigreturn. */ /* Nios2 uses a fixed address on the kuser page for sigreturn. */

View File

@ -1,29 +1,6 @@
#ifndef OPENRISC_TARGET_SIGNAL_H #ifndef OPENRISC_TARGET_SIGNAL_H
#define OPENRISC_TARGET_SIGNAL_H #define OPENRISC_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_long ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/* sigaltstack controls */
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_SA_NOCLDSTOP 0x00000001
#define TARGET_SA_NOCLDWAIT 0x00000002
#define TARGET_SA_SIGINFO 0x00000004
#define TARGET_SA_ONSTACK 0x08000000
#define TARGET_SA_RESTART 0x10000000
#define TARGET_SA_NODEFER 0x40000000
#define TARGET_SA_RESETHAND 0x80000000
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1

View File

@ -1,24 +1,6 @@
#ifndef PPC_TARGET_SIGNAL_H #ifndef PPC_TARGET_SIGNAL_H
#define PPC_TARGET_SIGNAL_H #define PPC_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#if !defined(TARGET_PPC64) #if !defined(TARGET_PPC64)

View File

@ -1,18 +1,6 @@
#ifndef RISCV_TARGET_SIGNAL_H #ifndef RISCV_TARGET_SIGNAL_H
#define RISCV_TARGET_SIGNAL_H #define RISCV_TARGET_SIGNAL_H
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1

View File

@ -1,21 +1,6 @@
#ifndef S390X_TARGET_SIGNAL_H #ifndef S390X_TARGET_SIGNAL_H
#define S390X_TARGET_SIGNAL_H #define S390X_TARGET_SIGNAL_H
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -1,24 +1,6 @@
#ifndef SH4_TARGET_SIGNAL_H #ifndef SH4_TARGET_SIGNAL_H
#define SH4_TARGET_SIGNAL_H #define SH4_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SETUP_FRAME #define TARGET_ARCH_HAS_SETUP_FRAME

View File

@ -1,24 +1,6 @@
#ifndef X86_64_TARGET_SIGNAL_H #ifndef X86_64_TARGET_SIGNAL_H
#define X86_64_TARGET_SIGNAL_H #define X86_64_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
/* For x86_64, use of SA_RESTORER is mandatory. */ /* For x86_64, use of SA_RESTORER is mandatory. */

View File

@ -1,23 +1,6 @@
#ifndef XTENSA_TARGET_SIGNAL_H #ifndef XTENSA_TARGET_SIGNAL_H
#define XTENSA_TARGET_SIGNAL_H #define XTENSA_TARGET_SIGNAL_H
/* this struct defines a stack used during syscall handling */
typedef struct target_sigaltstack {
abi_ulong ss_sp;
abi_int ss_flags;
abi_ulong ss_size;
} target_stack_t;
/*
* sigaltstack controls
*/
#define TARGET_SS_ONSTACK 1
#define TARGET_SS_DISABLE 2
#define TARGET_MINSIGSTKSZ 2048
#define TARGET_SIGSTKSZ 8192
#include "../generic/signal.h" #include "../generic/signal.h"
#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 #define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1