root/include/asm-sparc/sigcontext.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* $Id: sigcontext.h,v 1.7 1995/11/25 02:32:44 davem Exp $ */
   2 #ifndef _ASMsparc_SIGCONTEXT_H
   3 #define _ASMsparc_SIGCONTEXT_H
   4 
   5 #include <asm/ptrace.h>
   6 
   7 /* SunOS system call sigstack() uses this arg. */
   8 struct sunos_sigstack {
   9         unsigned long sig_sp;
  10         int onstack_flag;
  11 };
  12 
  13 /* This is what SunOS does, so shall I. */
  14 #define SUNOS_MAXWIN   31
  15 struct sigcontext_struct {
  16         int sigc_onstack;      /* state to restore */
  17         int sigc_mask;         /* sigmask to restore */
  18         int sigc_sp;           /* stack pointer */
  19         int sigc_pc;           /* program counter */
  20         int sigc_npc;          /* next program counter */
  21         int sigc_psr;          /* for condition codes etc */
  22         int sigc_g1;           /* User uses these two registers */
  23         int sigc_o0;           /* within the trampoline code. */
  24 
  25         /* Now comes information regarding the users window set
  26          * at the time of the signal.
  27          */
  28         int sigc_oswins;       /* outstanding windows */
  29 
  30         /* stack ptrs for each regwin buf */
  31         char *sigc_spbuf[SUNOS_MAXWIN];
  32 
  33         /* Windows to restore after signal */
  34         struct reg_window sigc_wbuf[SUNOS_MAXWIN];
  35 };
  36 
  37 #endif /* !(_ASMsparc_SIGCONTEXT_H) */

/* [previous][next][first][last][top][bottom][index][help] */