Goodbye mips64. 31704 lines of code bite the dust.
[linux-2.6/linux-mips.git] / include / asm-mips / sigcontext.h
blob09979bd225136f9d9d292bd5d099726353167aef
1 /*
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
4 * for more details.
6 * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9 #ifndef _ASM_SIGCONTEXT_H
10 #define _ASM_SIGCONTEXT_H
12 #include <asm/sgidefs.h>
14 #if _MIPS_SIM == _MIPS_SIM_ABI32
17 * Keep this struct definition in sync with the sigcontext fragment
18 * in arch/mips/tools/offset.c
20 struct sigcontext {
21 unsigned int sc_regmask; /* Unused */
22 unsigned int sc_status;
23 unsigned long long sc_pc;
24 unsigned long long sc_regs[32];
25 unsigned long long sc_fpregs[32];
26 unsigned int sc_ownedfp; /* Unused */
27 unsigned int sc_fpc_csr;
28 unsigned int sc_fpc_eir; /* Unused */
29 unsigned int sc_used_math;
30 unsigned int sc_ssflags; /* Unused */
31 unsigned long long sc_mdhi;
32 unsigned long long sc_mdlo;
34 unsigned int sc_cause; /* Unused */
35 unsigned int sc_badvaddr; /* Unused */
37 unsigned long sc_sigset[4]; /* kernel's sigset_t */
40 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
42 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
44 #include <linux/types.h>
47 * Keep this struct definition in sync with the sigcontext fragment
48 * in arch/mips/tools/offset.c
50 * Warning: this structure illdefined with sc_badvaddr being just an unsigned
51 * int so it was changed to unsigned long in 2.6.0-test1. This may break
52 * binary compatibility - no prisoners.
54 struct sigcontext {
55 unsigned long sc_regs[32];
56 unsigned long sc_fpregs[32];
57 unsigned long sc_mdhi;
58 unsigned long sc_mdlo;
59 unsigned long sc_pc;
60 unsigned long sc_badvaddr;
61 unsigned int sc_status;
62 unsigned int sc_fpc_csr;
63 unsigned int sc_fpc_eir;
64 unsigned int sc_used_math;
65 unsigned int sc_cause;
68 struct sigcontext32 {
69 __u32 sc_regmask; /* Unused */
70 __u32 sc_status;
71 __u64 sc_pc;
72 __u64 sc_regs[32];
73 __u64 sc_fpregs[32];
74 __u32 sc_ownedfp; /* Unused */
75 __u32 sc_fpc_csr;
76 __u32 sc_fpc_eir; /* Unused */
77 __u32 sc_used_math;
78 __u32 sc_ssflags; /* Unused */
79 __u64 sc_mdhi;
80 __u64 sc_mdlo;
82 __u32 sc_cause; /* Unused */
83 __u32 sc_badvaddr; /* Unused */
85 __u32 sc_sigset[4]; /* kernel's sigset_t */
88 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
90 #endif /* _ASM_SIGCONTEXT_H */