]>
Commit | Line | Data |
---|---|---|
e2be04c7 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
61730c53 DH |
2 | /* |
3 | * This file is subject to the terms and conditions of the GNU General Public | |
4 | * License. See the file "COPYING" in the main directory of this archive | |
5 | * for more details. | |
6 | * | |
7 | * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle | |
8 | * Copyright (C) 2000, 2001 Silicon Graphics, Inc. | |
9 | */ | |
10 | #ifndef _UAPI_ASM_SIGINFO_H | |
11 | #define _UAPI_ASM_SIGINFO_H | |
12 | ||
13 | ||
14 | #define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int)) | |
70342287 | 15 | #undef __ARCH_SI_TRAPNO /* exception code needs to fill this ... */ |
61730c53 | 16 | |
61730c53 DH |
17 | /* |
18 | * Careful to keep union _sifields from shifting ... | |
19 | */ | |
1d3e2d79 | 20 | #if _MIPS_SZLONG == 32 |
61730c53 | 21 | #define __ARCH_SI_PREAMBLE_SIZE (3 * sizeof(int)) |
1d3e2d79 | 22 | #elif _MIPS_SZLONG == 64 |
61730c53 | 23 | #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) |
1d3e2d79 MR |
24 | #else |
25 | #error _MIPS_SZLONG neither 32 nor 64 | |
61730c53 DH |
26 | #endif |
27 | ||
09d1415d | 28 | #define __ARCH_HAS_SWAPPED_SIGINFO |
51d139b1 | 29 | |
987e5b83 | 30 | #include <asm-generic/siginfo.h> |
61730c53 | 31 | |
61730c53 DH |
32 | /* |
33 | * si_code values | |
34 | * Again these have been chosen to be IRIX compatible. | |
35 | */ | |
36 | #undef SI_ASYNCIO | |
37 | #undef SI_TIMER | |
38 | #undef SI_MESGQ | |
39 | #define SI_ASYNCIO -2 /* sent by AIO completion */ | |
cc731525 EB |
40 | #define SI_TIMER -3 /* sent by timer expiration */ |
41 | #define SI_MESGQ -4 /* sent by real time mesq state change */ | |
61730c53 | 42 | |
61730c53 | 43 | #endif /* _UAPI_ASM_SIGINFO_H */ |