xref: /qemu/linux-user/mips64/target_signal.h (revision 992f48a036cccf7101e31bf3e5d901ce5320e886)
1540635baSths #ifndef TARGET_SIGNAL_H
2540635baSths #define TARGET_SIGNAL_H
3540635baSths 
4540635baSths #include "cpu.h"
5540635baSths 
6540635baSths /* this struct defines a stack used during syscall handling */
7540635baSths 
8540635baSths typedef struct target_sigaltstack {
9*992f48a0Sblueswir1 	abi_long ss_sp;
10*992f48a0Sblueswir1 	abi_ulong ss_size;
11*992f48a0Sblueswir1 	abi_long ss_flags;
12540635baSths } target_stack_t;
13540635baSths 
14540635baSths 
15540635baSths /*
16540635baSths  * sigaltstack controls
17540635baSths  */
18540635baSths #define TARGET_SS_ONSTACK     1
19540635baSths #define TARGET_SS_DISABLE     2
20540635baSths 
21540635baSths #define TARGET_MINSIGSTKSZ    2048
22540635baSths #define TARGET_SIGSTKSZ       8192
23540635baSths 
24*992f48a0Sblueswir1 static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state)
25540635baSths {
26540635baSths     return state->gpr[29][state->current_tc];
27540635baSths }
28540635baSths 
29540635baSths #endif /* TARGET_SIGNAL_H */
30