1 /* $Id: sigcontext.h,v 1.14 1999/09/06 08:22:05 jj Exp $ */
2 #ifndef __SPARC_SIGCONTEXT_H
3 #define __SPARC_SIGCONTEXT_H
6 #include <asm/ptrace.h>
10 #define __SUNOS_MAXWIN 31
12 /* This is what SunOS does, so shall I. */
14 int sigc_onstack
; /* state to restore */
15 int sigc_mask
; /* sigmask to restore */
16 int sigc_sp
; /* stack pointer */
17 int sigc_pc
; /* program counter */
18 int sigc_npc
; /* next program counter */
19 int sigc_psr
; /* for condition codes etc */
20 int sigc_g1
; /* User uses these two registers */
21 int sigc_o0
; /* within the trampoline code. */
23 /* Now comes information regarding the users window set
24 * at the time of the signal.
26 int sigc_oswins
; /* outstanding windows */
28 /* stack ptrs for each regwin buf */
29 char *sigc_spbuf
[__SUNOS_MAXWIN
];
31 /* Windows to restore after signal */
33 unsigned long locals
[8];
35 } sigc_wbuf
[__SUNOS_MAXWIN
];
44 unsigned long u_regs
[16]; /* globals and ins */
50 unsigned long si_float_regs
[32];
52 unsigned long si_fpqdepth
;
54 unsigned long *insn_addr
;
59 #endif /* !(__ASSEMBLY__) */
61 #endif /* (__KERNEL__) */
63 #endif /* !(__SPARC_SIGCONTEXT_H) */