root / bsd-user / sparc / target_signal.h @ 2c277908
History | View | Annotate | Download (485 Bytes)
1 | 53939066 | blueswir1 | #ifndef TARGET_SIGNAL_H
|
---|---|---|---|
2 | 53939066 | blueswir1 | #define TARGET_SIGNAL_H
|
3 | 53939066 | blueswir1 | |
4 | 53939066 | blueswir1 | #include "cpu.h" |
5 | 53939066 | blueswir1 | |
6 | 53939066 | blueswir1 | /* this struct defines a stack used during syscall handling */
|
7 | 53939066 | blueswir1 | |
8 | 53939066 | blueswir1 | typedef struct target_sigaltstack { |
9 | 53939066 | blueswir1 | abi_ulong ss_sp; |
10 | 53939066 | blueswir1 | abi_long ss_flags; |
11 | 53939066 | blueswir1 | abi_ulong ss_size; |
12 | 53939066 | blueswir1 | } target_stack_t; |
13 | 53939066 | blueswir1 | |
14 | 53939066 | blueswir1 | |
15 | 53939066 | blueswir1 | #ifndef UREG_I6
|
16 | 53939066 | blueswir1 | #define UREG_I6 6 |
17 | 53939066 | blueswir1 | #endif
|
18 | 53939066 | blueswir1 | #ifndef UREG_FP
|
19 | 53939066 | blueswir1 | #define UREG_FP UREG_I6
|
20 | 53939066 | blueswir1 | #endif
|
21 | 53939066 | blueswir1 | |
22 | 53939066 | blueswir1 | static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state) |
23 | 53939066 | blueswir1 | { |
24 | 53939066 | blueswir1 | return state->regwptr[UREG_FP];
|
25 | 53939066 | blueswir1 | } |
26 | 53939066 | blueswir1 | |
27 | 53939066 | blueswir1 | #endif /* TARGET_SIGNAL_H */ |