xref: /qemu/linux-user/mips64/target_signal.h (revision 9c93ae13a4014055c5c78e81078e5ccdc60c1cfa)
1*9c93ae13SMarkus Armbruster #ifndef MIPS64_TARGET_SIGNAL_H
2*9c93ae13SMarkus Armbruster #define MIPS64_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 {
9992f48a0Sblueswir1 	abi_long ss_sp;
10992f48a0Sblueswir1 	abi_ulong ss_size;
11ec355f15SEd Swierk 	abi_int ss_flags;
12c227f099SAnthony Liguori } 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 
24992f48a0Sblueswir1 static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state)
25540635baSths {
26b5dc7732Sths     return state->active_tc.gpr[29];
27540635baSths }
28540635baSths 
292eb3ae27STimothy E Baldwin 
30*9c93ae13SMarkus Armbruster #endif /* MIPS64_TARGET_SIGNAL_H */
31