MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / include / asm-sparc / sigcontext.h
blob86dc000ad681d4c1f0b969ea6a3085d6f0b84842
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
5 #ifdef __KERNEL__
6 #include <asm/ptrace.h>
7 #endif
9 #ifndef __ASSEMBLY__
11 #define __SUNOS_MAXWIN 31
13 /* This is what SunOS does, so shall I. */
14 struct sigcontext {
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 */
33 struct {
34 unsigned long locals[8];
35 unsigned long ins[8];
36 } sigc_wbuf[__SUNOS_MAXWIN];
39 typedef struct {
40 struct {
41 unsigned long psr;
42 unsigned long pc;
43 unsigned long npc;
44 unsigned long y;
45 unsigned long u_regs[16]; /* globals and ins */
46 } si_regs;
47 int si_mask;
48 } __siginfo_t;
50 typedef struct {
51 unsigned long si_float_regs [32];
52 unsigned long si_fsr;
53 unsigned long si_fpqdepth;
54 struct {
55 unsigned long *insn_addr;
56 unsigned long insn;
57 } si_fpqueue [16];
58 } __siginfo_fpu_t;
60 #endif /* !(__ASSEMBLY__) */
62 #endif /* !(__SPARC_SIGCONTEXT_H) */