1 #ifndef TARGET_SIGNAL_H
2 #define TARGET_SIGNAL_H
6 /* this struct defines a stack used during syscall handling */
8 typedef struct target_sigaltstack
{
17 * sigaltstack controls
19 #define TARGET_SS_ONSTACK 1
20 #define TARGET_SS_DISABLE 2
22 #define TARGET_MINSIGSTKSZ 4096
23 #define TARGET_SIGSTKSZ 16384
25 static inline abi_ulong
get_sp_from_cpustate(CPUAlphaState
*state
)
27 return state
->ir
[IR_SP
];
30 /* From <asm/gentrap.h>. */
31 #define TARGET_GEN_INTOVF -1 /* integer overflow */
32 #define TARGET_GEN_INTDIV -2 /* integer division by zero */
33 #define TARGET_GEN_FLTOVF -3 /* fp overflow */
34 #define TARGET_GEN_FLTDIV -4 /* fp division by zero */
35 #define TARGET_GEN_FLTUND -5 /* fp underflow */
36 #define TARGET_GEN_FLTINV -6 /* invalid fp operand */
37 #define TARGET_GEN_FLTINE -7 /* inexact fp operand */
38 #define TARGET_GEN_DECOVF -8 /* decimal overflow (for COBOL??) */
39 #define TARGET_GEN_DECDIV -9 /* decimal division by zero */
40 #define TARGET_GEN_DECINV -10 /* invalid decimal operand */
41 #define TARGET_GEN_ROPRAND -11 /* reserved operand */
42 #define TARGET_GEN_ASSERTERR -12 /* assertion error */
43 #define TARGET_GEN_NULPTRERR -13 /* null pointer error */
44 #define TARGET_GEN_STKOVF -14 /* stack overflow */
45 #define TARGET_GEN_STRLENERR -15 /* string length error */
46 #define TARGET_GEN_SUBSTRERR -16 /* substring error */
47 #define TARGET_GEN_RANGERR -17 /* range error */
48 #define TARGET_GEN_SUBRNG -18
49 #define TARGET_GEN_SUBRNG1 -19
50 #define TARGET_GEN_SUBRNG2 -20
51 #define TARGET_GEN_SUBRNG3 -21
52 #define TARGET_GEN_SUBRNG4 -22
53 #define TARGET_GEN_SUBRNG5 -23
54 #define TARGET_GEN_SUBRNG6 -24
55 #define TARGET_GEN_SUBRNG7 -25
57 #endif /* TARGET_SIGNAL_H */