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