186cb007fSWarner Losh /*- 2*51369649SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 3*51369649SPedro F. Giffuni * 46cda32c0SRodney W. Grimes * Copyright (c) 1986, 1989, 1991, 1993 56cda32c0SRodney W. Grimes * The Regents of the University of California. All rights reserved. 66cda32c0SRodney W. Grimes * 76cda32c0SRodney W. Grimes * Redistribution and use in source and binary forms, with or without 86cda32c0SRodney W. Grimes * modification, are permitted provided that the following conditions 96cda32c0SRodney W. Grimes * are met: 106cda32c0SRodney W. Grimes * 1. Redistributions of source code must retain the above copyright 116cda32c0SRodney W. Grimes * notice, this list of conditions and the following disclaimer. 126cda32c0SRodney W. Grimes * 2. Redistributions in binary form must reproduce the above copyright 136cda32c0SRodney W. Grimes * notice, this list of conditions and the following disclaimer in the 146cda32c0SRodney W. Grimes * documentation and/or other materials provided with the distribution. 15fbbd9655SWarner Losh * 3. Neither the name of the University nor the names of its contributors 166cda32c0SRodney W. Grimes * may be used to endorse or promote products derived from this software 176cda32c0SRodney W. Grimes * without specific prior written permission. 186cda32c0SRodney W. Grimes * 196cda32c0SRodney W. Grimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 206cda32c0SRodney W. Grimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 216cda32c0SRodney W. Grimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 226cda32c0SRodney W. Grimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 236cda32c0SRodney W. Grimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 246cda32c0SRodney W. Grimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 256cda32c0SRodney W. Grimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 266cda32c0SRodney W. Grimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 276cda32c0SRodney W. Grimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 286cda32c0SRodney W. Grimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 296cda32c0SRodney W. Grimes * SUCH DAMAGE. 306cda32c0SRodney W. Grimes */ 316cda32c0SRodney W. Grimes 32943c1801SBruce Evans #ifndef _MACHINE_SIGNAL_H_ 33943c1801SBruce Evans #define _MACHINE_SIGNAL_H_ 34836dc83bSPaul Richards 3531a53cd0SKonstantin Belousov #include <x86/signal.h> 36e9862e9bSKonstantin Belousov 37e9862e9bSKonstantin Belousov #if defined(_KERNEL) && defined(COMPAT_43) 38e9862e9bSKonstantin Belousov /* 39e9862e9bSKonstantin Belousov * Only the kernel should need these old type definitions. 40e9862e9bSKonstantin Belousov */ 4191078fcaSMarcel Moolenaar struct osigcontext { 426cda32c0SRodney W. Grimes int sc_onstack; /* sigstack state to restore */ 4391078fcaSMarcel Moolenaar osigset_t sc_mask; /* signal mask to restore */ 44e6daa89cSMarcel Moolenaar int sc_esp; /* machine state follows: */ 4526f9a767SRodney W. Grimes int sc_ebp; 4626f9a767SRodney W. Grimes int sc_isp; 4726f9a767SRodney W. Grimes int sc_eip; 4826f9a767SRodney W. Grimes int sc_efl; 4926f9a767SRodney W. Grimes int sc_es; 5026f9a767SRodney W. Grimes int sc_ds; 5126f9a767SRodney W. Grimes int sc_cs; 5226f9a767SRodney W. Grimes int sc_ss; 5326f9a767SRodney W. Grimes int sc_edi; 5426f9a767SRodney W. Grimes int sc_esi; 5526f9a767SRodney W. Grimes int sc_ebx; 5626f9a767SRodney W. Grimes int sc_edx; 5726f9a767SRodney W. Grimes int sc_ecx; 5826f9a767SRodney W. Grimes int sc_eax; 5948a09cf2SJohn Dyson int sc_gs; 6048a09cf2SJohn Dyson int sc_fs; 61c5c6b7b3SMarcel Moolenaar int sc_trapno; 62c5c6b7b3SMarcel Moolenaar int sc_err; 63c5c6b7b3SMarcel Moolenaar }; 640270d57aSDaniel Eischen #endif 65c5c6b7b3SMarcel Moolenaar 66943c1801SBruce Evans #endif /* !_MACHINE_SIGNAL_H_ */ 67