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>
11 #define __SUNOS_MAXWIN 31
13 /* This is what SunOS does, so shall I. */
15 int sigc_onstack; /* state to restore */
16 int sigc_mask; /* sigmask to restore */
17 int sigc_sp; /* stack pointer */
18 int sigc_pc; /* program counter */
19 int sigc_npc; /* next program counter */
20 int sigc_psr; /* for condition codes etc */
21 int sigc_g1; /* User uses these two registers */
22 int sigc_o0; /* within the trampoline code. */
24 /* Now comes information regarding the users window set
25 * at the time of the signal.
27 int sigc_oswins; /* outstanding windows */
29 /* stack ptrs for each regwin buf */
30 char *sigc_spbuf[__SUNOS_MAXWIN];
32 /* Windows to restore after signal */
34 unsigned long locals[8];
36 } sigc_wbuf[__SUNOS_MAXWIN];
45 unsigned long u_regs[16]; /* globals and ins */
51 unsigned long si_float_regs [32];
53 unsigned long si_fpqdepth;
55 unsigned long *insn_addr;
62 /* This magic should be in g_upper[0] for all upper parts
64 This is generated by sparc64 only, but for 32bit processes,
65 so we define it here as well. */
66 #define SIGINFO_EXTRA_V8PLUS_MAGIC 0x130e269
68 unsigned int g_upper[8];
69 unsigned int o_upper[8];
70 } siginfo_extra_v8plus_t;
74 #endif /* !(__ASSEMBLY__) */
76 #endif /* !(__SPARC_SIGCONTEXT_H) */