xref: /csrg-svn/sys/pmax/include/signal.h (revision 63217)
152131Smckusick /*
2*63217Sbostic  * Copyright (c) 1992, 1993
3*63217Sbostic  *	The Regents of the University of California.  All rights reserved.
452131Smckusick  *
552131Smckusick  * This code is derived from software contributed to Berkeley by
652131Smckusick  * Ralph Campbell.
752131Smckusick  *
852131Smckusick  * %sccs.include.redist.c%
952131Smckusick  *
10*63217Sbostic  *	@(#)signal.h	8.1 (Berkeley) 06/10/93
1152131Smckusick  */
1252131Smckusick 
1352131Smckusick /*
1452131Smckusick  * Machine-dependent signal definitions
1552131Smckusick  */
1652131Smckusick 
1752131Smckusick typedef int sig_atomic_t;
1852131Smckusick 
1952131Smckusick /*
2052131Smckusick  * Information pushed on stack when a signal is delivered.
2152131Smckusick  * This is used by the kernel to restore state following
2252131Smckusick  * execution of the signal handler.  It is also made available
2352131Smckusick  * to the handler to allow it to restore state properly if
2452131Smckusick  * a non-standard exit is performed.
2552131Smckusick  */
2652131Smckusick struct	sigcontext {
2752131Smckusick 	int	sc_onstack;	/* sigstack state to restore */
2852131Smckusick 	int	sc_mask;	/* signal mask to restore */
2952131Smckusick 	int	sc_pc;		/* pc at time of signal */
3052131Smckusick 	int	sc_regs[34];	/* processor regs 0 to 31, mullo, mullhi */
3152131Smckusick 	int	sc_fpused;	/* fp has been used */
3252131Smckusick 	int	sc_fpregs[33];	/* fp regs 0 to 31 and csr */
3352131Smckusick 	int	sc_fpc_eir;	/* floating point exception instruction reg */
3452131Smckusick };
35