152131Smckusick /* 263217Sbostic * Copyright (c) 1992, 1993 363217Sbostic * 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*69208Smckusick * @(#)signal.h 8.2 (Berkeley) 05/03/95 1152131Smckusick */ 1252131Smckusick 1352131Smckusick /* 1452131Smckusick * Machine-dependent signal definitions 1552131Smckusick */ 1652131Smckusick 1752131Smckusick typedef int sig_atomic_t; 1852131Smckusick 19*69208Smckusick #if !defined(_POSIX_SOURCE) && !defined(_ANSI_SOURCE) 20*69208Smckusick #include <machine/trap.h> /* codes for SIGILL, SIGFPE */ 21*69208Smckusick 2252131Smckusick /* 2352131Smckusick * Information pushed on stack when a signal is delivered. 2452131Smckusick * This is used by the kernel to restore state following 2552131Smckusick * execution of the signal handler. It is also made available 2652131Smckusick * to the handler to allow it to restore state properly if 2752131Smckusick * a non-standard exit is performed. 2852131Smckusick */ 2952131Smckusick struct sigcontext { 3052131Smckusick int sc_onstack; /* sigstack state to restore */ 3152131Smckusick int sc_mask; /* signal mask to restore */ 3252131Smckusick int sc_pc; /* pc at time of signal */ 3352131Smckusick int sc_regs[34]; /* processor regs 0 to 31, mullo, mullhi */ 3452131Smckusick int sc_fpused; /* fp has been used */ 3552131Smckusick int sc_fpregs[33]; /* fp regs 0 to 31 and csr */ 3652131Smckusick int sc_fpc_eir; /* floating point exception instruction reg */ 3752131Smckusick }; 38*69208Smckusick #endif 39