]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/bsd/ultrix4/mips/bits/sigcontext.h
Update.
[thirdparty/glibc.git] / sysdeps / unix / bsd / ultrix4 / mips / bits / sigcontext.h
CommitLineData
478b92f0
UD
1/* Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
28f540f4 3
478b92f0
UD
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
28f540f4 8
478b92f0
UD
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 Library General Public License for more details.
28f540f4 13
478b92f0
UD
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
28f540f4 18
f4017d20
UD
19#ifndef _SIGNAL_H
20# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
21#endif
22
28f540f4
RM
23/* Note that ANY change to this instantly implies a change to __handler.S. */
24
25struct sigcontext
26 {
27 /* Nonzero if running on signal stack. */
28 int sc_onstack;
478b92f0 29
28f540f4
RM
30 /* Signal mask to restore. */
31 __sigset_t sc_mask;
478b92f0 32
28f540f4
RM
33 /* Program counter when the signal hit. */
34 __ptr_t sc_pc;
478b92f0 35
28f540f4
RM
36 /* Registers 0 through 31. */
37 int sc_regs[32];
478b92f0 38
28f540f4
RM
39 /* mul/div low and hi; these aren't part of a jmp_buf, but are part of the
40 sigcontext and are referenced from the signal trampoline code. */
41 int sc_mdlo;
42 int sc_mdhi;
478b92f0 43
28f540f4
RM
44 /* Flag to see if the FP's been used. */
45 int sc_ownedfp;
478b92f0 46
28f540f4
RM
47 /* Floating point registers 0 to 31. */
48 int sc_fpregs[32];
49 /* Control & status register for FP. */
50 int sc_fpc_csr;
478b92f0 51
28f540f4
RM
52 /* Exception instruction register for FP. */
53 int sc_fpc_eir;
478b92f0 54
28f540f4
RM
55 /* The coprocessor's cause register. */
56 int sc_cause;
478b92f0 57
28f540f4
RM
58 /* CPU bad virtual address. */
59 __ptr_t sc_badvaddr;
478b92f0 60
28f540f4
RM
61 /* CPU board bad physical address. */
62 __ptr_t sc_badpaddr;
63 };