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 _ASM_SIGCONTEXT_H
10 #define _ASM_SIGCONTEXT_H
12 #include <linux/types.h>
13 #include <asm/sgidefs.h>
15 #if _MIPS_SIM == _MIPS_SIM_ABI32
18 * Keep this struct definition in sync with the sigcontext fragment
19 * in arch/mips/tools/offset.c
22 unsigned int sc_regmask
; /* Unused */
23 unsigned int sc_status
; /* Unused */
24 unsigned long long sc_pc
;
25 unsigned long long sc_regs
[32];
26 unsigned long long sc_fpregs
[32];
27 unsigned int sc_acx
; /* Was sc_ownedfp */
28 unsigned int sc_fpc_csr
;
29 unsigned int sc_fpc_eir
; /* Unused */
30 unsigned int sc_used_math
;
31 unsigned int sc_dsp
; /* dsp status, was sc_ssflags */
32 unsigned long long sc_mdhi
;
33 unsigned long long sc_mdlo
;
34 unsigned long sc_hi1
; /* Was sc_cause */
35 unsigned long sc_lo1
; /* Was sc_badvaddr */
36 unsigned long sc_hi2
; /* Was sc_sigset[4] */
42 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
44 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
46 #include <linux/posix_types.h>
48 * Keep this struct definition in sync with the sigcontext fragment
49 * in arch/mips/tools/offset.c
51 * Warning: this structure illdefined with sc_badvaddr being just an unsigned
52 * int so it was changed to unsigned long in 2.6.0-test1. This may break
53 * binary compatibility - no prisoners.
54 * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
55 * entries, add sc_dsp and sc_reserved for padding. No prisoners.
78 __u32 sc_regmask
; /* Unused */
79 __u32 sc_status
; /* Unused */
83 __u32 sc_acx
; /* Only MIPS32; was sc_ownedfp */
85 __u32 sc_fpc_eir
; /* Unused */
87 __u32 sc_dsp
; /* dsp status, was sc_ssflags */
90 __u32 sc_hi1
; /* Was sc_cause */
91 __u32 sc_lo1
; /* Was sc_badvaddr */
92 __u32 sc_hi2
; /* Was sc_sigset[4] */
97 #endif /* __KERNEL__ */
99 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
101 #endif /* _ASM_SIGCONTEXT_H */