Annotation of sys/arch/hp300/include/hpux_machdep.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: hpux_machdep.h,v 1.8 2005/01/15 21:13:09 miod Exp $ */
! 2: /* $NetBSD: hpux_machdep.h,v 1.8 1997/04/27 21:38:58 thorpej Exp $ */
! 3:
! 4: /*-
! 5: * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
! 6: * All rights reserved.
! 7: *
! 8: * This code is derived from software contributed to The NetBSD Foundation
! 9: * by Jason R. Thorpe.
! 10: *
! 11: * Redistribution and use in source and binary forms, with or without
! 12: * modification, are permitted provided that the following conditions
! 13: * are met:
! 14: * 1. Redistributions of source code must retain the above copyright
! 15: * notice, this list of conditions and the following disclaimer.
! 16: * 2. Redistributions in binary form must reproduce the above copyright
! 17: * notice, this list of conditions and the following disclaimer in the
! 18: * documentation and/or other materials provided with the distribution.
! 19: * 3. All advertising materials mentioning features or use of this software
! 20: * must display the following acknowledgement:
! 21: * This product includes software developed by the NetBSD
! 22: * Foundation, Inc. and its contributors.
! 23: * 4. Neither the name of The NetBSD Foundation nor the names of its
! 24: * contributors may be used to endorse or promote products derived
! 25: * from this software without specific prior written permission.
! 26: *
! 27: * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
! 28: * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
! 29: * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
! 30: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
! 31: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
! 32: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
! 33: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
! 34: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
! 35: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
! 36: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
! 37: * POSSIBILITY OF SUCH DAMAGE.
! 38: */
! 39:
! 40: #ifndef _MACHINE_HPUX_MACHDEP_H_
! 41: #define _MACHINE_HPUX_MACHDEP_H_
! 42:
! 43: /*
! 44: * Information pushed on stack when a signal is delivered.
! 45: * This is used by the kernel to restore state following
! 46: * execution of the signal handler. It is also made available
! 47: * to the handler to allow it to restore state properly if
! 48: * a non-standard exit is performed.
! 49: */
! 50: struct hpuxsigcontext {
! 51: int hsc_syscall; /* ??? (syscall number?) */
! 52: char hsc_action; /* ??? */
! 53: char hsc_pad1;
! 54: char hsc_pad2;
! 55: char hsc_onstack; /* sigstack state to restore */
! 56: int hsc_mask; /* signal mask to restore */
! 57: int hsc_sp; /* sp to restore */
! 58: short hsc_ps; /* psl to restore */
! 59: int hsc_pc; /* pc to restore */
! 60:
! 61: /*
! 62: * The following are not actually used by HP-UX. They exist
! 63: * for the convenience of the compatibility code.
! 64: */
! 65: short _hsc_pad;
! 66: int _hsc_ap; /* pointer to hpuxsigstate */
! 67: };
! 68:
! 69: #ifdef _KERNEL
! 70: struct exec_package;
! 71: struct exec_vmcmd;
! 72:
! 73: int hpux_cpu_makecmds(struct proc *, struct exec_package *);
! 74: int hpux_cpu_vmcmd(struct proc *, struct exec_vmcmd *);
! 75: int hpux_cpu_sysconf_arch(void);
! 76: int hpux_to_bsd_uoff(int *, int *, struct proc *);
! 77:
! 78: void hpux_sendsig(sig_t, int, int, u_long, int, union sigval);
! 79: void hpux_setregs(struct proc *, struct exec_package *,
! 80: u_long, register_t *);
! 81: #endif /* _KERNEL */
! 82:
! 83: #endif /* ! _MACHINE_HPUX_MACHDEP_H_ */
CVSweb