00001 #ifndef TARGET_SIGNAL_H
00002 #define TARGET_SIGNAL_H
00003
00004 #include "cpu.h"
00005
00006
00007
00008 typedef struct target_sigaltstack {
00009 int32_t ss_sp;
00010 uint32_t ss_size;
00011 int32_t ss_flags;
00012 } target_stack_t;
00013
00014
00015
00016
00017
00018 #define TARGET_SS_ONSTACK 1
00019 #define TARGET_SS_DISABLE 2
00020
00021 #define TARGET_MINSIGSTKSZ 2048
00022 #define TARGET_SIGSTKSZ 8192
00023
00024 static inline target_ulong get_sp_from_cpustate(CPUMIPSState *state)
00025 {
00026 return state->active_tc.gpr[29];
00027 }
00028
00029 #endif