]>
Commit | Line | Data |
---|---|---|
8b5d487d GX |
1 | /* |
2 | * Copyright (C) 2010-2011 GUAN Xue-tao | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 as | |
6 | * published by the Free Software Foundation. | |
7 | */ | |
9c93ae13 MA |
8 | #ifndef UNICORE32_TARGET_SIGNAL_H |
9 | #define UNICORE32_TARGET_SIGNAL_H | |
8b5d487d GX |
10 | |
11 | /* this struct defines a stack used during syscall handling */ | |
12 | typedef struct target_sigaltstack { | |
13 | abi_ulong ss_sp; | |
14 | abi_ulong ss_flags; | |
15 | abi_ulong ss_size; | |
16 | } target_stack_t; | |
17 | ||
18 | /* | |
19 | * sigaltstack controls | |
20 | */ | |
21 | #define TARGET_SS_ONSTACK 1 | |
22 | #define TARGET_SS_DISABLE 2 | |
23 | ||
6e502164 MT |
24 | static inline abi_ulong get_sp_from_cpustate(CPUUniCore32State *state) |
25 | { | |
26 | return state->regs[29]; | |
27 | } | |
28 | ||
8b5d487d | 29 | |
9c93ae13 | 30 | #endif /* UNICORE32_TARGET_SIGNAL_H */ |