root / linux-user / mips64 / target_signal.h @ 9ea37780
History | View | Annotate | Download (548 Bytes)
1 | 540635ba | ths | #ifndef TARGET_SIGNAL_H
|
---|---|---|---|
2 | 540635ba | ths | #define TARGET_SIGNAL_H
|
3 | 540635ba | ths | |
4 | 540635ba | ths | #include "cpu.h" |
5 | 540635ba | ths | |
6 | 540635ba | ths | /* this struct defines a stack used during syscall handling */
|
7 | 540635ba | ths | |
8 | 540635ba | ths | typedef struct target_sigaltstack { |
9 | 992f48a0 | blueswir1 | abi_long ss_sp; |
10 | 992f48a0 | blueswir1 | abi_ulong ss_size; |
11 | 992f48a0 | blueswir1 | abi_long ss_flags; |
12 | c227f099 | Anthony Liguori | } target_stack_t; |
13 | 540635ba | ths | |
14 | 540635ba | ths | |
15 | 540635ba | ths | /*
|
16 | 540635ba | ths | * sigaltstack controls
|
17 | 540635ba | ths | */
|
18 | 540635ba | ths | #define TARGET_SS_ONSTACK 1 |
19 | 540635ba | ths | #define TARGET_SS_DISABLE 2 |
20 | 540635ba | ths | |
21 | 540635ba | ths | #define TARGET_MINSIGSTKSZ 2048 |
22 | 540635ba | ths | #define TARGET_SIGSTKSZ 8192 |
23 | 540635ba | ths | |
24 | 992f48a0 | blueswir1 | static inline abi_ulong get_sp_from_cpustate(CPUMIPSState *state) |
25 | 540635ba | ths | { |
26 | b5dc7732 | ths | return state->active_tc.gpr[29]; |
27 | 540635ba | ths | } |
28 | 540635ba | ths | |
29 | 540635ba | ths | #endif /* TARGET_SIGNAL_H */ |