(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / unix / sysv / linux / mips / bits / sigcontext.h
blob079964ed46aed09b1cad1f0f370b2491862afb23
1 /* Copyright (C) 1996, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
20 # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
21 #endif
23 #include <sgidefs.h>
25 #ifndef sigcontext_struct
26 /* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
27 we need sigcontext. */
28 # define sigcontext_struct sigcontext
30 /* # include <asm/sigcontext.h> */
31 /* Instead of including the kernel header, that will vary depending on
32 whether the 32- or the 64-bit kernel is installed, we paste the
33 contents here. In case you're wondering about the different
34 licenses, the fact that the file is pasted, instead of included,
35 doesn't really make any difference for the program that includes
36 this header. */
37 #if _MIPS_SIM == _ABIO32
39 * This file is subject to the terms and conditions of the GNU General Public
40 * License. See the file "COPYING" in the main directory of this archive
41 * for more details.
43 * Copyright (C) 1996, 1997, 2000 by Ralf Baechle
45 #ifndef _ASM_SIGCONTEXT_H
46 #define _ASM_SIGCONTEXT_H
49 * Keep this struct definition in sync with the sigcontext fragment
50 * in arch/mips/tools/offset.c
52 struct sigcontext {
53 unsigned int sc_regmask; /* Unused */
54 unsigned int sc_status;
55 unsigned long long sc_pc;
56 unsigned long long sc_regs[32];
57 unsigned long long sc_fpregs[32];
58 unsigned int sc_ownedfp; /* Unused */
59 unsigned int sc_fpc_csr;
60 unsigned int sc_fpc_eir; /* Unused */
61 unsigned int sc_used_math;
62 unsigned int sc_ssflags; /* Unused */
63 unsigned long long sc_mdhi;
64 unsigned long long sc_mdlo;
66 unsigned int sc_cause; /* Unused */
67 unsigned int sc_badvaddr; /* Unused */
69 unsigned long sc_sigset[4]; /* kernel's sigset_t */
72 #endif /* _ASM_SIGCONTEXT_H */
73 #else /* _MIPS_SIM != _ABIO32 */
75 * This file is subject to the terms and conditions of the GNU General Public
76 * License. See the file "COPYING" in the main directory of this archive
77 * for more details.
79 * Copyright (C) 1996, 1997, 1999 by Ralf Baechle
80 * Copyright (C) 1999 Silicon Graphics, Inc.
82 #ifndef _ASM_SIGCONTEXT_H
83 #define _ASM_SIGCONTEXT_H
86 * Keep this struct definition in sync with the sigcontext fragment
87 * in arch/mips/tools/offset.c
89 struct sigcontext {
90 unsigned long long sc_regs[32];
91 unsigned long long sc_fpregs[32];
92 unsigned long long sc_mdhi;
93 unsigned long long sc_mdlo;
94 unsigned long long sc_pc;
95 unsigned int sc_status;
96 unsigned int sc_fpc_csr;
97 unsigned int sc_fpc_eir;
98 unsigned int sc_used_math;
99 unsigned int sc_cause;
100 unsigned int sc_badvaddr;
103 #endif /* _ASM_SIGCONTEXT_H */
104 #endif /* _MIPS_SIM != _ABIO32 */
105 #endif