Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. |
| 5 | * |
| 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 |
| 11 | |
David Howells | 61730c5 | 2012-10-09 09:47:14 +0100 | [diff] [blame] | 12 | #include <uapi/asm/sigcontext.h> |
Ralf Baechle | 42a3b4f | 2005-09-03 15:56:17 -0700 | [diff] [blame] | 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | struct sigcontext32 { |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 17 | __u32 sc_regmask; /* Unused */ |
Franck Bui-Huu | 6bfe966 | 2007-02-05 15:24:26 +0100 | [diff] [blame] | 18 | __u32 sc_status; /* Unused */ |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 19 | __u64 sc_pc; |
| 20 | __u64 sc_regs[32]; |
| 21 | __u64 sc_fpregs[32]; |
Franck Bui-Huu | 9693a85 | 2007-02-02 17:41:47 +0100 | [diff] [blame] | 22 | __u32 sc_acx; /* Only MIPS32; was sc_ownedfp */ |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 23 | __u32 sc_fpc_csr; |
| 24 | __u32 sc_fpc_eir; /* Unused */ |
| 25 | __u32 sc_used_math; |
| 26 | __u32 sc_dsp; /* dsp status, was sc_ssflags */ |
| 27 | __u64 sc_mdhi; |
| 28 | __u64 sc_mdlo; |
| 29 | __u32 sc_hi1; /* Was sc_cause */ |
| 30 | __u32 sc_lo1; /* Was sc_badvaddr */ |
| 31 | __u32 sc_hi2; /* Was sc_sigset[4] */ |
| 32 | __u32 sc_lo2; |
| 33 | __u32 sc_hi3; |
| 34 | __u32 sc_lo3; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | #endif /* _ASM_SIGCONTEXT_H */ |