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