]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/ia64/include/uapi/asm/siginfo.h
Merge branches 'acpi-fan', 'acpi-video' and 'acpi-ec'
[mirror_ubuntu-focal-kernel.git] / arch / ia64 / include / uapi / asm / siginfo.h
1 /*
2 * Based on <asm-i386/siginfo.h>.
3 *
4 * Modified 1998-2002
5 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
6 */
7 #ifndef _UAPI_ASM_IA64_SIGINFO_H
8 #define _UAPI_ASM_IA64_SIGINFO_H
9
10
11 #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
12
13 #define HAVE_ARCH_SIGINFO_T
14 #define HAVE_ARCH_COPY_SIGINFO
15 #define HAVE_ARCH_COPY_SIGINFO_TO_USER
16
17 #include <asm-generic/siginfo.h>
18
19 typedef struct siginfo {
20 int si_signo;
21 int si_errno;
22 int si_code;
23 int __pad0;
24
25 union {
26 int _pad[SI_PAD_SIZE];
27
28 /* kill() */
29 struct {
30 pid_t _pid; /* sender's pid */
31 uid_t _uid; /* sender's uid */
32 } _kill;
33
34 /* POSIX.1b timers */
35 struct {
36 timer_t _tid; /* timer id */
37 int _overrun; /* overrun count */
38 char _pad[sizeof(__ARCH_SI_UID_T) - sizeof(int)];
39 sigval_t _sigval; /* must overlay ._rt._sigval! */
40 int _sys_private; /* not to be passed to user */
41 } _timer;
42
43 /* POSIX.1b signals */
44 struct {
45 pid_t _pid; /* sender's pid */
46 uid_t _uid; /* sender's uid */
47 sigval_t _sigval;
48 } _rt;
49
50 /* SIGCHLD */
51 struct {
52 pid_t _pid; /* which child */
53 uid_t _uid; /* sender's uid */
54 int _status; /* exit code */
55 clock_t _utime;
56 clock_t _stime;
57 } _sigchld;
58
59 /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
60 struct {
61 void __user *_addr; /* faulting insn/memory ref. */
62 int _imm; /* immediate value for "break" */
63 unsigned int _flags; /* see below */
64 unsigned long _isr; /* isr */
65 short _addr_lsb; /* lsb of faulting address */
66 struct {
67 void __user *_lower;
68 void __user *_upper;
69 } _addr_bnd;
70 } _sigfault;
71
72 /* SIGPOLL */
73 struct {
74 long _band; /* POLL_IN, POLL_OUT, POLL_MSG (XPG requires a "long") */
75 int _fd;
76 } _sigpoll;
77 } _sifields;
78 } siginfo_t;
79
80 #define si_imm _sifields._sigfault._imm /* as per UNIX SysV ABI spec */
81 #define si_flags _sifields._sigfault._flags
82 /*
83 * si_isr is valid for SIGILL, SIGFPE, SIGSEGV, SIGBUS, and SIGTRAP provided that
84 * si_code is non-zero and __ISR_VALID is set in si_flags.
85 */
86 #define si_isr _sifields._sigfault._isr
87
88 /*
89 * Flag values for si_flags:
90 */
91 #define __ISR_VALID_BIT 0
92 #define __ISR_VALID (1 << __ISR_VALID_BIT)
93
94 /*
95 * SIGILL si_codes
96 */
97 #define ILL_BADIADDR (__SI_FAULT|9) /* unimplemented instruction address */
98 #define __ILL_BREAK (__SI_FAULT|10) /* illegal break */
99 #define __ILL_BNDMOD (__SI_FAULT|11) /* bundle-update (modification) in progress */
100 #undef NSIGILL
101 #define NSIGILL 11
102
103 /*
104 * SIGFPE si_codes
105 */
106 #define __FPE_DECOVF (__SI_FAULT|9) /* decimal overflow */
107 #define __FPE_DECDIV (__SI_FAULT|10) /* decimal division by zero */
108 #define __FPE_DECERR (__SI_FAULT|11) /* packed decimal error */
109 #define __FPE_INVASC (__SI_FAULT|12) /* invalid ASCII digit */
110 #define __FPE_INVDEC (__SI_FAULT|13) /* invalid decimal digit */
111 #undef NSIGFPE
112 #define NSIGFPE 13
113
114 /*
115 * SIGSEGV si_codes
116 */
117 #define __SEGV_PSTKOVF (__SI_FAULT|4) /* paragraph stack overflow */
118 #undef NSIGSEGV
119 #define NSIGSEGV 4
120
121 #undef NSIGTRAP
122 #define NSIGTRAP 4
123
124
125 #endif /* _UAPI_ASM_IA64_SIGINFO_H */