2/* From: NetBSD: signal.h,v 1.3 1997/04/06 08:47:43 cgd Exp */ 3 4/* 5 * Copyright (c) 1994, 1995 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * 10 * Permission to use, copy, modify and distribute this software and 11 * its documentation is hereby granted, provided that both the copyright 12 * notice and this permission notice appear in all copies of the 13 * software, derivative works or modified versions, and any portions 14 * thereof, and that both notices appear in supporting documentation. 15 * 16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * Carnegie Mellon requests users of this software to return to 21 * 22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 23 * School of Computer Science 24 * Carnegie Mellon University 25 * Pittsburgh PA 15213-3890 26 * 27 * any improvements or extensions that they make and grant Carnegie the 28 * rights to redistribute these changes. 29 */ 30 31#ifndef _MACHINE_SIGNAL_H_ 32#define _MACHINE_SIGNAL_H_ 33 34typedef long sig_atomic_t; 35 36#ifndef _ANSI_SOURCE 37 38#ifndef _IA64_FPREG_DEFINED 39 40struct ia64_fpreg { 41 unsigned long fpr_bits[2]; 42} __attribute__ ((aligned (16))); 43 44#define _IA64_FPREG_DEFINED 45 46#endif 47 48/* 49 * Information pushed on stack when a signal is delivered. 50 * This is used by the kernel to restore state following 51 * execution of the signal handler. It is also made available 52 * to the handler to allow it to restore state properly if 53 * a non-standard exit is performed. 54 * 55 * Note that sc_regs[] and sc_fpregs[]+sc_fpcr are inline 56 * representations of 'struct reg' and 'struct fpreg', respectively. 57 */ 58typedef unsigned int osigset_t; 59struct osigcontext {}; 60 61/* 62 * The sequence of the fields should match those in 63 * mcontext_t. Keep them in sync! 64 */ 65struct sigcontext {
| 2/* From: NetBSD: signal.h,v 1.3 1997/04/06 08:47:43 cgd Exp */ 3 4/* 5 * Copyright (c) 1994, 1995 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * 10 * Permission to use, copy, modify and distribute this software and 11 * its documentation is hereby granted, provided that both the copyright 12 * notice and this permission notice appear in all copies of the 13 * software, derivative works or modified versions, and any portions 14 * thereof, and that both notices appear in supporting documentation. 15 * 16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * Carnegie Mellon requests users of this software to return to 21 * 22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 23 * School of Computer Science 24 * Carnegie Mellon University 25 * Pittsburgh PA 15213-3890 26 * 27 * any improvements or extensions that they make and grant Carnegie the 28 * rights to redistribute these changes. 29 */ 30 31#ifndef _MACHINE_SIGNAL_H_ 32#define _MACHINE_SIGNAL_H_ 33 34typedef long sig_atomic_t; 35 36#ifndef _ANSI_SOURCE 37 38#ifndef _IA64_FPREG_DEFINED 39 40struct ia64_fpreg { 41 unsigned long fpr_bits[2]; 42} __attribute__ ((aligned (16))); 43 44#define _IA64_FPREG_DEFINED 45 46#endif 47 48/* 49 * Information pushed on stack when a signal is delivered. 50 * This is used by the kernel to restore state following 51 * execution of the signal handler. It is also made available 52 * to the handler to allow it to restore state properly if 53 * a non-standard exit is performed. 54 * 55 * Note that sc_regs[] and sc_fpregs[]+sc_fpcr are inline 56 * representations of 'struct reg' and 'struct fpreg', respectively. 57 */ 58typedef unsigned int osigset_t; 59struct osigcontext {}; 60 61/* 62 * The sequence of the fields should match those in 63 * mcontext_t. Keep them in sync! 64 */ 65struct sigcontext {
|
67 unsigned long sc_flags; 68 unsigned long sc_nat; 69 unsigned long sc_sp; 70 unsigned long sc_ip; 71 unsigned long sc_cfm; 72 unsigned long sc_um; 73 unsigned long sc_ar_rsc; 74 unsigned long sc_ar_bsp; 75 unsigned long sc_ar_rnat; 76 unsigned long sc_ar_ccv; 77 unsigned long sc_ar_unat; 78 unsigned long sc_ar_fpsr; 79 unsigned long sc_ar_pfs; 80 unsigned long sc_pr; 81 unsigned long sc_br[8]; 82 unsigned long sc_gr[32]; 83 struct ia64_fpreg sc_fr[128]; 84}; 85 86#endif /* !_ANSI_SOURCE */ 87#endif /* !_MACHINE_SIGNAL_H_*/
| 68 unsigned long sc_flags; 69 unsigned long sc_nat; 70 unsigned long sc_sp; 71 unsigned long sc_ip; 72 unsigned long sc_cfm; 73 unsigned long sc_um; 74 unsigned long sc_ar_rsc; 75 unsigned long sc_ar_bsp; 76 unsigned long sc_ar_rnat; 77 unsigned long sc_ar_ccv; 78 unsigned long sc_ar_unat; 79 unsigned long sc_ar_fpsr; 80 unsigned long sc_ar_pfs; 81 unsigned long sc_pr; 82 unsigned long sc_br[8]; 83 unsigned long sc_gr[32]; 84 struct ia64_fpreg sc_fr[128]; 85}; 86 87#endif /* !_ANSI_SOURCE */ 88#endif /* !_MACHINE_SIGNAL_H_*/
|