root / linux-user / mipsn32 / target_signal.h @ 89fc88da
History | View | Annotate | Download (557 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 | 540635ba | ths | int32_t ss_sp; |
10 | 540635ba | ths | uint32_t ss_size; |
11 | 540635ba | ths | int32_t ss_flags; |
12 | 540635ba | ths | } 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 | 540635ba | ths | static inline target_ulong get_sp_from_cpustate(CPUMIPSState *state) |
25 | 540635ba | ths | { |
26 | 540635ba | ths | return state->gpr[29][state->current_tc]; |
27 | 540635ba | ths | } |
28 | 540635ba | ths | |
29 | 540635ba | ths | #endif /* TARGET_SIGNAL_H */ |