Back to index

glibc  2.9
sigcontext.h
Go to the documentation of this file.
00001 /* Machine-dependent signal context structure for GNU Hurd.  HPPA version.
00002    Copyright (C) 1995,97,2001 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H
00021 # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
00022 #endif
00023 
00024 #ifndef sc_parisc_thread_state
00025 
00026 /* Signal handlers are actually called:
00027    void handler (int sig, int code, struct sigcontext *scp);  */
00028 
00029 /* State of this thread when the signal was taken.  */
00030 struct sigcontext
00031   {
00032     /* These first members are machine-independent.  */
00033 
00034     int sc_onstack;         /* Nonzero if running on sigstack.  */
00035     __sigset_t sc_mask;            /* Blocked signals to restore.  */
00036 
00037     /* MiG reply port this thread is using.  */
00038     unsigned int sc_reply_port;
00039 
00040     /* Port this thread is doing an interruptible RPC on.  */
00041     unsigned int sc_intr_port;
00042 
00043     /* Error code associated with this signal (interpreted as `error_t').  */
00044     int sc_error;
00045 
00046     /* All following members are machine-dependent.  The rest of this
00047        structure is written to be laid out identically to a `struct
00048        parisc_thread_state'.  trampoline.c knows this, so it must be
00049        changed if this changes.  */
00050 
00051 #define sc_parisc_thread_state sc_flags /* Beginning of correspondence.  */
00052     /* "General" registers $1..$31.  */
00053     unsigned int sc_regs[31];
00054 
00055     /* Control registers.  */
00056     unsigned int sc_cr11;   /* sar */
00057     /* These four registers make up the PC.  */
00058     unsigned int iioq_head;
00059     unsigned int iisq_head;
00060     unsigned int iioq_tail;
00061     unsigned int iisq_tail;
00062     unsigned int sc_cr15;
00063     unsigned int sc_cr19;
00064     unsigned int sc_cr20;
00065     unsigned int sc_cr21;
00066     unsigned int sc_cr22;   /* ipsw */
00067     unsigned int sc_bsd_goto;      /* unused */
00068     unsigned int sc_sr4;
00069     unsigned int sc_sr0;
00070     unsigned int sc_sr1;
00071     unsigned int sc_sr2;
00072     unsigned int sc_sr3;
00073     unsigned int sc_sr5;
00074     unsigned int sc_sr6;
00075     unsigned int sc_sr7;
00076     unsigned int sc_cr0;
00077     unsigned int sc_cr8;
00078     unsigned int sc_cr9;
00079     unsigned int sc_cr10;   /* unused */
00080     unsigned int sc_cr12;
00081     unsigned int sc_cr13;
00082     unsigned int sc_cr24;   /* unused */
00083     unsigned int sc_cr25;   /* unused */
00084     unsigned int sc_cr26;   /* unused */
00085     unsigned sc_mpsfu_high; /* unused */
00086     unsigned sc_mpsfu_low;  /* unused */
00087     unsigned sc_mpsfu_ovflo;       /* unused */
00088     int sc_pad;
00089 
00090     /* Floating point registers $f0..$f31.  */
00091     double sc_fpregs[32];
00092   };
00093 
00094 #endif /* sc_parisc_thread_state */