]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
Update to LGPL v2.1.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / ia64 / bits / sigcontext.h
CommitLineData
90b828e6 1/* Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
a9a4127e
UD
2 This file is part of the GNU C Library.
3 Contributed by Jes Sorensen <jes@linuxcare.com>, July 2000
4
5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
a9a4127e
UD
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
a9a4127e 14
41bdb6e2
AJ
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
a9a4127e
UD
19
20#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
21# error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
22#endif
23
90b828e6
AJ
24#ifndef _BITS_SIGCONTEXT_H
25#define _BITS_SIGCONTEXT_H 1
26
a9a4127e
UD
27#include <asm/fpu.h>
28#include <bits/sigstack.h>
29
30struct sigcontext
31{
32 unsigned long int sc_flags; /* see manifest constants above */
33 unsigned long int sc_nat; /* bit i == 1 iff scratch reg gr[i] is a NaT */
34 stack_t sc_stack; /* previously active stack */
35
36 unsigned long int sc_ip; /* instruction pointer */
37 unsigned long int sc_cfm; /* current frame marker */
38 unsigned long int sc_um; /* user mask bits */
39 unsigned long int sc_ar_rsc; /* register stack configuration register */
40 unsigned long int sc_ar_bsp; /* backing store pointer */
41 unsigned long int sc_ar_rnat; /* RSE NaT collection register */
42 unsigned long int sc_ar_ccv; /* compare & exchange compare value register */
43 unsigned long int sc_ar_unat; /* ar.unat of interrupted context */
44 unsigned long int sc_ar_fpsr; /* floating-point status register */
45 unsigned long int sc_ar_pfs; /* previous function state */
46 unsigned long int sc_ar_lc; /* loop count register */
47 unsigned long int sc_pr; /* predicate registers */
48 unsigned long int sc_br[8]; /* branch registers */
49 unsigned long int sc_gr[32]; /* general registers (static partition) */
50 struct ia64_fpreg sc_fr[128]; /* floating-point registers */
51
52 /* sc_mask is actually an sigset_t but we don't want to
53 * include the kernel headers here. */
54 unsigned long int sc_mask; /* signal mask to restore after handler returns */
55};
90b828e6 56
b912ca11 57#endif /* _BITS_SIGCONTEXT_H */