00001 #ifndef TARGET_SIGNAL_H
00002 #define TARGET_SIGNAL_H
00003
00004 #include "cpu.h"
00005
00006
00007
00008 typedef struct target_sigaltstack {
00009 abi_ulong ss_sp;
00010 abi_long ss_flags;
00011 abi_ulong ss_size;
00012 } target_stack_t;
00013
00014
00015 #ifndef UREG_I6
00016 #define UREG_I6 6
00017 #endif
00018 #ifndef UREG_FP
00019 #define UREG_FP UREG_I6
00020 #endif
00021
00022 static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state)
00023 {
00024 return state->regwptr[UREG_FP];
00025 }
00026
00027 #endif