root/include/asm-sparc/sigcontext.h

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

INCLUDED FROM


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

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