xref: /csrg-svn/sys/pmax/include/signal.h (revision 52131)
1*52131Smckusick /*
2*52131Smckusick  * Copyright (c) 1992 Regents of the University of California.
3*52131Smckusick  * All rights reserved.
4*52131Smckusick  *
5*52131Smckusick  * This code is derived from software contributed to Berkeley by
6*52131Smckusick  * Ralph Campbell.
7*52131Smckusick  *
8*52131Smckusick  * %sccs.include.redist.c%
9*52131Smckusick  *
10*52131Smckusick  *	@(#)signal.h	7.1 (Berkeley) 01/07/92
11*52131Smckusick  */
12*52131Smckusick 
13*52131Smckusick /*
14*52131Smckusick  * Machine-dependent signal definitions
15*52131Smckusick  */
16*52131Smckusick 
17*52131Smckusick typedef int sig_atomic_t;
18*52131Smckusick 
19*52131Smckusick /*
20*52131Smckusick  * Information pushed on stack when a signal is delivered.
21*52131Smckusick  * This is used by the kernel to restore state following
22*52131Smckusick  * execution of the signal handler.  It is also made available
23*52131Smckusick  * to the handler to allow it to restore state properly if
24*52131Smckusick  * a non-standard exit is performed.
25*52131Smckusick  */
26*52131Smckusick struct	sigcontext {
27*52131Smckusick 	int	sc_onstack;	/* sigstack state to restore */
28*52131Smckusick 	int	sc_mask;	/* signal mask to restore */
29*52131Smckusick 	int	sc_pc;		/* pc at time of signal */
30*52131Smckusick 	int	sc_regs[34];	/* processor regs 0 to 31, mullo, mullhi */
31*52131Smckusick 	int	sc_fpused;	/* fp has been used */
32*52131Smckusick 	int	sc_fpregs[33];	/* fp regs 0 to 31 and csr */
33*52131Smckusick 	int	sc_fpc_eir;	/* floating point exception instruction reg */
34*52131Smckusick };
35