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
00016
00017
00018 #define TARGET_SS_ONSTACK 1
00019 #define TARGET_SS_DISABLE 2
00020
00021 #define TARGET_MINSIGSTKSZ 4096
00022 #define TARGET_SIGSTKSZ 16384
00023
00024 #ifndef UREG_I6
00025 #define UREG_I6 6
00026 #endif
00027 #ifndef UREG_FP
00028 #define UREG_FP UREG_I6
00029 #endif
00030
00031 static inline abi_ulong get_sp_from_cpustate(CPUSPARCState *state)
00032 {
00033 return state->regwptr[UREG_FP];
00034 }
00035
00036 #endif