2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
9 #ifndef _UAPI_ASM_SIGCONTEXT_H
10 #define _UAPI_ASM_SIGCONTEXT_H
12 #include <linux/types.h>
13 #include <asm/sgidefs.h>
15 /* scalar FP context was used */
16 #define USED_FP (1 << 0)
18 /* the value of Status.FR when context was saved */
19 #define USED_FR1 (1 << 1)
21 /* FR=1, but with odd singles in bits 63:32 of preceding even double */
22 #define USED_HYBRID_FPRS (1 << 2)
24 /* extended context was used, see struct extcontext for details */
25 #define USED_EXTCONTEXT (1 << 3)
27 #if _MIPS_SIM == _MIPS_SIM_ABI32
30 * Keep this struct definition in sync with the sigcontext fragment
31 * in arch/mips/kernel/asm-offsets.c
34 unsigned int sc_regmask
; /* Unused */
35 unsigned int sc_status
; /* Unused */
36 unsigned long long sc_pc
;
37 unsigned long long sc_regs
[32];
38 unsigned long long sc_fpregs
[32];
39 unsigned int sc_acx
; /* Was sc_ownedfp */
40 unsigned int sc_fpc_csr
;
41 unsigned int sc_fpc_eir
; /* Unused */
42 unsigned int sc_used_math
;
43 unsigned int sc_dsp
; /* dsp status, was sc_ssflags */
44 unsigned long long sc_mdhi
;
45 unsigned long long sc_mdlo
;
46 unsigned long sc_hi1
; /* Was sc_cause */
47 unsigned long sc_lo1
; /* Was sc_badvaddr */
48 unsigned long sc_hi2
; /* Was sc_sigset[4] */
54 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
56 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
58 #include <linux/posix_types.h>
60 * Keep this struct definition in sync with the sigcontext fragment
61 * in arch/mips/kernel/asm-offsets.c
63 * Warning: this structure illdefined with sc_badvaddr being just an unsigned
64 * int so it was changed to unsigned long in 2.6.0-test1. This may break
65 * binary compatibility - no prisoners.
66 * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
67 * entries, add sc_dsp and sc_reserved for padding. No prisoners.
88 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
90 #endif /* _UAPI_ASM_SIGCONTEXT_H */