xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/sigcontext.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
7*4882a593Smuzhiyun  * Copyright (C) 1999 Silicon Graphics, Inc.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #ifndef _ASM_SIGCONTEXT_H
10*4882a593Smuzhiyun #define _ASM_SIGCONTEXT_H
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #include <uapi/asm/sigcontext.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun struct sigcontext32 {
17*4882a593Smuzhiyun 	__u32		sc_regmask;	/* Unused */
18*4882a593Smuzhiyun 	__u32		sc_status;	/* Unused */
19*4882a593Smuzhiyun 	__u64		sc_pc;
20*4882a593Smuzhiyun 	__u64		sc_regs[32];
21*4882a593Smuzhiyun 	__u64		sc_fpregs[32];
22*4882a593Smuzhiyun 	__u32		sc_acx;		/* Only MIPS32; was sc_ownedfp */
23*4882a593Smuzhiyun 	__u32		sc_fpc_csr;
24*4882a593Smuzhiyun 	__u32		sc_fpc_eir;	/* Unused */
25*4882a593Smuzhiyun 	__u32		sc_used_math;
26*4882a593Smuzhiyun 	__u32		sc_dsp;		/* dsp status, was sc_ssflags */
27*4882a593Smuzhiyun 	__u64		sc_mdhi;
28*4882a593Smuzhiyun 	__u64		sc_mdlo;
29*4882a593Smuzhiyun 	__u32		sc_hi1;		/* Was sc_cause */
30*4882a593Smuzhiyun 	__u32		sc_lo1;		/* Was sc_badvaddr */
31*4882a593Smuzhiyun 	__u32		sc_hi2;		/* Was sc_sigset[4] */
32*4882a593Smuzhiyun 	__u32		sc_lo2;
33*4882a593Smuzhiyun 	__u32		sc_hi3;
34*4882a593Smuzhiyun 	__u32		sc_lo3;
35*4882a593Smuzhiyun };
36*4882a593Smuzhiyun #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */
37*4882a593Smuzhiyun #endif /* _ASM_SIGCONTEXT_H */
38