[PATCH] add a proper prototype for setup_arch()
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-mips / sigcontext.h
blob8edabb0be23f64f8cb576178fde9c2643b93e12b
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_dsp; /* dsp status, was sc_ssflags */
31 unsigned long long sc_mdhi;
32 unsigned long long sc_mdlo;
33 unsigned long sc_hi1; /* Was sc_cause */
34 unsigned long sc_lo1; /* Was sc_badvaddr */
35 unsigned long sc_hi2; /* Was sc_sigset[4] */
36 unsigned long sc_lo2;
37 unsigned long sc_hi3;
38 unsigned long sc_lo3;
41 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
43 #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
46 * Keep this struct definition in sync with the sigcontext fragment
47 * in arch/mips/tools/offset.c
49 * Warning: this structure illdefined with sc_badvaddr being just an unsigned
50 * int so it was changed to unsigned long in 2.6.0-test1. This may break
51 * binary compatibility - no prisoners.
52 * DSP ASE in 2.6.12-rc4. Turn sc_mdhi and sc_mdlo into an array of four
53 * entries, add sc_dsp and sc_reserved for padding. No prisoners.
55 struct sigcontext {
56 unsigned long sc_regs[32];
57 unsigned long sc_fpregs[32];
58 unsigned long sc_hi[4];
59 unsigned long sc_lo[4];
60 unsigned long sc_pc;
61 unsigned int sc_fpc_csr;
62 unsigned int sc_used_math;
63 unsigned int sc_dsp;
64 unsigned int sc_reserved;
67 #ifdef __KERNEL__
69 #include <linux/posix_types.h>
71 struct sigcontext32 {
72 __u32 sc_regmask; /* Unused */
73 __u32 sc_status;
74 __u64 sc_pc;
75 __u64 sc_regs[32];
76 __u64 sc_fpregs[32];
77 __u32 sc_ownedfp; /* Unused */
78 __u32 sc_fpc_csr;
79 __u32 sc_fpc_eir; /* Unused */
80 __u32 sc_used_math;
81 __u32 sc_dsp; /* dsp status, was sc_ssflags */
82 __u64 sc_mdhi;
83 __u64 sc_mdlo;
84 __u32 sc_hi1; /* Was sc_cause */
85 __u32 sc_lo1; /* Was sc_badvaddr */
86 __u32 sc_hi2; /* Was sc_sigset[4] */
87 __u32 sc_lo2;
88 __u32 sc_hi3;
89 __u32 sc_lo3;
91 #endif /* __KERNEL__ */
93 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
95 #endif /* _ASM_SIGCONTEXT_H */