xref: /qemu/linux-user/mips/target_signal.h (revision 9850f9f63acb44724138a2b89b07ea4f6b3d2ba0)
1 #ifndef MIPS_TARGET_SIGNAL_H
2 #define MIPS_TARGET_SIGNAL_H
3 
4 /* this struct defines a stack used during syscall handling */
5 
6 typedef struct target_sigaltstack {
7 	abi_long ss_sp;
8 	abi_ulong ss_size;
9 	abi_long ss_flags;
10 } target_stack_t;
11 
12 
13 /*
14  * sigaltstack controls
15  */
16 #define TARGET_SS_ONSTACK     1
17 #define TARGET_SS_DISABLE     2
18 
19 #define TARGET_MINSIGSTKSZ    2048
20 #define TARGET_SIGSTKSZ       8192
21 
22 #if defined(TARGET_ABI_MIPSO32)
23 /* compare linux/arch/mips/kernel/signal.c:setup_frame() */
24 #define TARGET_ARCH_HAS_SETUP_FRAME
25 #endif
26 #endif /* MIPS_TARGET_SIGNAL_H */
27