1 /* Copyright (C) 1996, 1997, 1998, 2003, 2004, 2006 Free Software 2 Foundation, Inc. This file is part of the GNU C Library. 3 4 The GNU C Library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 The GNU C Library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with the GNU C Library; if not, see 16 <http://www.gnu.org/licenses/>. */ 17 18 #ifndef _BITS_SIGCONTEXT_H 19 #define _BITS_SIGCONTEXT_H 1 20 21 #if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H 22 # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead." 23 #endif 24 25 #include <sgidefs.h> 26 27 #if _MIPS_SIM == _ABIO32 28 29 /* Certain unused fields were replaced with new ones in 2.6.12-rc4. 30 The changes were as follows: 31 32 sc_cause -> sc_hi1 33 sc_badvaddr -> sc_lo1 34 sc_sigset[0] -> sc_hi2 35 sc_sigset[1] -> sc_lo2 36 sc_sigset[2] -> sc_hi3 37 sc_sigset[3] -> sc_lo3 38 39 sc_regmask, sc_ownedfp and sc_fpc_eir are not used. */ 40 struct sigcontext { 41 unsigned int sc_regmask; 42 unsigned int sc_status; 43 unsigned long long sc_pc; 44 unsigned long long sc_regs[32]; 45 unsigned long long sc_fpregs[32]; 46 unsigned int sc_ownedfp; 47 unsigned int sc_fpc_csr; 48 unsigned int sc_fpc_eir; 49 unsigned int sc_used_math; 50 unsigned int sc_dsp; 51 unsigned long long sc_mdhi; 52 unsigned long long sc_mdlo; 53 unsigned long sc_hi1; 54 unsigned long sc_lo1; 55 unsigned long sc_hi2; 56 unsigned long sc_lo2; 57 unsigned long sc_hi3; 58 unsigned long sc_lo3; 59 }; 60 61 #else 62 63 /* This structure changed in 2.6.12-rc4 when DSP support was added. */ 64 struct sigcontext { 65 unsigned long long sc_regs[32]; 66 unsigned long long sc_fpregs[32]; 67 unsigned long long sc_mdhi; 68 unsigned long long sc_hi1; 69 unsigned long long sc_hi2; 70 unsigned long long sc_hi3; 71 unsigned long long sc_mdlo; 72 unsigned long long sc_lo1; 73 unsigned long long sc_lo2; 74 unsigned long long sc_lo3; 75 unsigned long long sc_pc; 76 unsigned int sc_fpc_csr; 77 unsigned int sc_used_math; 78 unsigned int sc_dsp; 79 unsigned int sc_reserved; 80 }; 81 82 #endif /* _MIPS_SIM != _ABIO32 */ 83 #endif 84