xref: /openbsd-src/sys/arch/hppa/include/signal.h (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 /*	$OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $	*/
2 
3 /*
4  * Copyright (c) 1994, The University of Utah and
5  * the Computer Systems Laboratory at the University of Utah (CSL).
6  * All rights reserved.
7  *
8  * Permission to use, copy, modify and distribute this software is hereby
9  * granted provided that (1) source code retains these copyright, permission,
10  * and disclaimer notices, and (2) redistributions including binaries
11  * reproduce the notices in supporting documentation, and (3) all advertising
12  * materials mentioning features or use of this software display the following
13  * acknowledgement: ``This product includes software developed by the
14  * Computer Systems Laboratory at the University of Utah.''
15  *
16  * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
17  * IS" CONDITION.  THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
18  * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19  *
20  * CSL requests users of this software to return to csl-dist@cs.utah.edu any
21  * improvements that they make and grant CSL redistribution rights.
22  *
23  * 	Utah $Hdr: signal.h 1.3 94/12/16$
24  */
25 
26 /*
27  * Machine-dependent signal definitions
28  */
29 
30 typedef int sig_atomic_t;
31 
32 #ifndef _POSIX_SOURCE
33 #include <machine/trap.h>	/* codes for SIGILL, SIGFPE */
34 #endif
35 
36 /*
37  * Information pushed on stack when a signal is delivered.
38  * This is used by the kernel to restore state following
39  * execution of the signal handler.  It is also made available
40  * to the handler to allow it to restore state properly if
41  * a non-standard exit is performed.
42  */
43 struct	sigcontext {
44 	int	sc_onstack;		/* sigstack state to restore */
45 	int	sc_mask;		/* signal mask to restore */
46 	int	sc_sp;			/* sp to restore */
47 	int	sc_fp;			/* fp to restore */
48 	int	sc_ap;			/* ap to restore */
49 	int	sc_pcsqh;		/* pc space queue (head) to restore */
50 	int	sc_pcoqh;		/* pc offset queue (head) to restore */
51 	int	sc_pcsqt;		/* pc space queue (tail) to restore */
52 	int	sc_pcoqt;		/* pc offset queue (tail) to restore */
53 	int	sc_ps;			/* psl to restore */
54 };
55