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