1 #ifndef TARGET_SIGNAL_H
2 #define TARGET_SIGNAL_H
3 
4 #include "cpu.h"
5 
6 typedef struct target_sigaltstack {
7     abi_ulong ss_sp;
8     abi_int ss_flags;
9     abi_ulong ss_size;
10 } target_stack_t;
11 
12 #define TARGET_SS_ONSTACK 1
13 #define TARGET_SS_DISABLE 2
14 
15 #define TARGET_MINSIGSTKSZ 2048
16 #define TARGET_SIGSTKSZ 8192
17 
18 static inline abi_ulong get_sp_from_cpustate(CPURISCVState *state)
19 {
20    return state->gpr[xSP];
21 }
22 #endif /* TARGET_SIGNAL_H */
23