| 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 | |
|---|
| 12 | #include <asm/sgidefs.h> |
|---|
| 13 | |
|---|
| 14 | #if _MIPS_SIM == _MIPS_SIM_ABI32 |
|---|
| 15 | |
|---|
| 16 | /* |
|---|
| 17 | * Keep this struct definition in sync with the sigcontext fragment |
|---|
| 18 | * in arch/mips/tools/offset.c |
|---|
| 19 | */ |
|---|
| 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; |
|---|
| 33 | |
|---|
| 34 | unsigned int sc_cause; /* Unused */ |
|---|
| 35 | unsigned int sc_badvaddr; /* Unused */ |
|---|
| 36 | |
|---|
| 37 | unsigned long sc_sigset[4]; /* kernel's sigset_t */ |
|---|
| 38 | }; |
|---|
| 39 | |
|---|
| 40 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
|---|
| 41 | |
|---|
| 42 | #if _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 |
|---|
| 43 | |
|---|
| 44 | /* |
|---|
| 45 | * Keep this struct definition in sync with the sigcontext fragment |
|---|
| 46 | * in arch/mips/tools/offset.c |
|---|
| 47 | * |
|---|
| 48 | * Warning: this structure illdefined with sc_badvaddr being just an unsigned |
|---|
| 49 | * int so it was changed to unsigned long in 2.6.0-test1. This may break |
|---|
| 50 | * binary compatibility - no prisoners. |
|---|
| 51 | */ |
|---|
| 52 | struct sigcontext { |
|---|
| 53 | unsigned long sc_regs[32]; |
|---|
| 54 | unsigned long sc_fpregs[32]; |
|---|
| 55 | unsigned long sc_mdhi; |
|---|
| 56 | unsigned long sc_mdlo; |
|---|
| 57 | unsigned long sc_pc; |
|---|
| 58 | unsigned long sc_badvaddr; |
|---|
| 59 | unsigned int sc_status; |
|---|
| 60 | unsigned int sc_fpc_csr; |
|---|
| 61 | unsigned int sc_fpc_eir; |
|---|
| 62 | unsigned int sc_used_math; |
|---|
| 63 | unsigned int sc_cause; |
|---|
| 64 | }; |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 || _MIPS_SIM == _MIPS_SIM_NABI32 */ |
|---|
| 68 | |
|---|
| 69 | #endif /* _ASM_SIGCONTEXT_H */ |
|---|