netbsd32_machdep.h revision 1.5
11.5Seeh/* $NetBSD: netbsd32_machdep.h,v 1.5 1999/12/30 16:24:33 eeh Exp $ */ 21.1Smrg 31.1Smrg/* 41.1Smrg * Copyright (c) 1998 Matthew R. Green 51.1Smrg * All rights reserved. 61.1Smrg * 71.1Smrg * Redistribution and use in source and binary forms, with or without 81.1Smrg * modification, are permitted provided that the following conditions 91.1Smrg * are met: 101.1Smrg * 1. Redistributions of source code must retain the above copyright 111.1Smrg * notice, this list of conditions and the following disclaimer. 121.1Smrg * 2. Redistributions in binary form must reproduce the above copyright 131.1Smrg * notice, this list of conditions and the following disclaimer in the 141.1Smrg * documentation and/or other materials provided with the distribution. 151.1Smrg * 3. The name of the author may not be used to endorse or promote products 161.1Smrg * derived from this software without specific prior written permission. 171.1Smrg * 181.1Smrg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 191.1Smrg * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 201.1Smrg * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 211.1Smrg * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 221.1Smrg * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 231.1Smrg * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 241.1Smrg * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 251.1Smrg * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 261.1Smrg * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 271.1Smrg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 281.1Smrg * SUCH DAMAGE. 291.1Smrg */ 301.1Smrg 311.1Smrg#ifndef _MACHINE_NETBSD32_H_ 321.1Smrg#define _MACHINE_NETBSD32_H_ 331.1Smrg 341.1Smrg/* from <arch/sparc/include/signal.h> */ 351.1Smrgtypedef u_int32_t netbsd32_sigcontextp_t; 361.1Smrg 371.2Smrgstruct netbsd32_sigcontext { 381.5Seeh int sc_onstack; /* sigstack state to restore */ 391.5Seeh int __sc_mask13; /* signal mask to restore (old style) */ 401.5Seeh /* begin machine dependent portion */ 411.5Seeh int sc_sp; /* %sp to restore */ 421.5Seeh int sc_pc; /* pc to restore */ 431.5Seeh int sc_npc; /* npc to restore */ 441.5Seeh int sc_tstate; /* pstate to restore */ 451.5Seeh int sc_g1; /* %g1 to restore */ 461.5Seeh int sc_o0; /* %o0 to restore */ 471.5Seeh sigset_t sc_mask; /* signal mask to restore (new style) */ 481.5Seeh}; 491.5Seeh 501.5Seehstruct netbsd32_sigcontext13 { 511.1Smrg int sc_onstack; /* sigstack state to restore */ 521.5Seeh int sc_mask; /* signal mask to restore (old style) */ 531.1Smrg /* begin machine dependent portion */ 541.1Smrg int sc_sp; /* %sp to restore */ 551.1Smrg int sc_pc; /* pc to restore */ 561.1Smrg int sc_npc; /* npc to restore */ 571.5Seeh int sc_psr; /* pstate to restore */ 581.1Smrg int sc_g1; /* %g1 to restore */ 591.1Smrg int sc_o0; /* %o0 to restore */ 601.1Smrg}; 611.3Seeh 621.5Seehstruct exec_package; 631.3Seehvoid netbsd32_setregs __P((struct proc *p, struct exec_package *pack, u_long stack)); 641.4Seehint netbsd32_sigreturn __P((struct proc *p, void *v, register_t *retval)); 651.5Seehvoid netbsd32_sendsig __P((sig_t catcher, int sig, sigset_t *mask, u_long code)); 661.3Seeh 671.3Seehextern char netbsd32_esigcode[], netbsd32_sigcode[]; 681.3Seeh 691.1Smrg 701.1Smrg#endif /* _MACHINE_NETBSD32_H_ */ 71