xref: /qemu/linux-user/i386/target_signal.h (revision a04e134ad1f4271bea2c7b7649b21e35ded91005)
1*a04e134aSths #ifndef TARGET_SIGNAL_H
2*a04e134aSths #define TARGET_SIGNAL_H
3*a04e134aSths 
4*a04e134aSths #include "cpu.h"
5*a04e134aSths 
6*a04e134aSths /* this struct defines a stack used during syscall handling */
7*a04e134aSths 
8*a04e134aSths typedef struct target_sigaltstack {
9*a04e134aSths 	target_ulong ss_sp;
10*a04e134aSths 	target_long ss_flags;
11*a04e134aSths 	target_ulong ss_size;
12*a04e134aSths } target_stack_t;
13*a04e134aSths 
14*a04e134aSths 
15*a04e134aSths /*
16*a04e134aSths  * sigaltstack controls
17*a04e134aSths  */
18*a04e134aSths #define TARGET_SS_ONSTACK	1
19*a04e134aSths #define TARGET_SS_DISABLE	2
20*a04e134aSths 
21*a04e134aSths #define TARGET_MINSIGSTKSZ	2048
22*a04e134aSths #define TARGET_SIGSTKSZ		8192
23*a04e134aSths 
24*a04e134aSths #endif /* TARGET_SIGNAL_H */
25