1 /* $Id: sigcontext.h,v 1.12 1999/09/06 08:22:09 jj Exp $ */
2 #ifndef __SPARC64_SIGCONTEXT_H
3 #define __SPARC64_SIGCONTEXT_H
6 #include <asm/ptrace.h>
13 #define __SUNOS_MAXWIN 31
15 /* This is what SunOS does, so shall I unless we use new 32bit signals or rt signals. */
17 int sigc_onstack
; /* state to restore */
18 int sigc_mask
; /* sigmask to restore */
19 int sigc_sp
; /* stack pointer */
20 int sigc_pc
; /* program counter */
21 int sigc_npc
; /* next program counter */
22 int sigc_psr
; /* for condition codes etc */
23 int sigc_g1
; /* User uses these two registers */
24 int sigc_o0
; /* within the trampoline code. */
26 /* Now comes information regarding the users window set
27 * at the time of the signal.
29 int sigc_oswins
; /* outstanding windows */
31 /* stack ptrs for each regwin buf */
32 unsigned sigc_spbuf
[__SUNOS_MAXWIN
];
34 /* Windows to restore after signal */
35 struct reg_window32 sigc_wbuf
[__SUNOS_MAXWIN
];
42 /* This is what we use for 32bit new non-rt signals. */
50 unsigned int u_regs
[16]; /* globals and ins */
58 unsigned int si_float_regs
[64];
61 unsigned long si_fprs
;
64 /* This is what SunOS doesn't, so we have to write this alone
65 and do it properly. */
67 /* The size of this array has to match SI_MAX_SIZE from siginfo.h */
70 unsigned long u_regs
[16]; /* globals and ins */
77 __siginfo_fpu_t
* sigc_fpu_save
;
81 unsigned long ss_size
;
83 unsigned long sigc_mask
;
86 #endif /* !(__ASSEMBLY__) */
88 #endif /* !(__SPARC64_SIGCONTEXT_H) */