[BACK]Return to hpux_machdep.h CVS log [TXT][DIR] Up to [local] / sys / arch / hppa / include

Annotation of sys/arch/hppa/include/hpux_machdep.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: hpux_machdep.h,v 1.2 2005/03/26 20:37:24 mickey Exp $ */
        !             2:
        !             3: /*
        !             4:  * Copyright (c) 2005 Michael Shalayeff
        !             5:  * All rights reserved.
        !             6:  *
        !             7:  * Redistribution and use in source and binary forms, with or without
        !             8:  * modification, are permitted provided that the following conditions
        !             9:  * are met:
        !            10:  * 1. Redistributions of source code must retain the above copyright
        !            11:  *    notice, this list of conditions and the following disclaimer.
        !            12:  * 2. Redistributions in binary form must reproduce the above copyright
        !            13:  *    notice, this list of conditions and the following disclaimer in the
        !            14:  *    documentation and/or other materials provided with the distribution.
        !            15:  *
        !            16:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            17:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            18:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            19:  * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
        !            20:  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        !            21:  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        !            22:  * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            23:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
        !            24:  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
        !            25:  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
        !            26:  * THE POSSIBILITY OF SUCH DAMAGE.
        !            27:  */
        !            28:
        !            29: #ifndef _HPPA_HPUX_MACHDEP_H_
        !            30: #define _HPPA_HPUX_MACHDEP_H_
        !            31:
        !            32: struct hpux_sigcontext {
        !            33:        int             sc_syscall;
        !            34:        int             sc_onstack;
        !            35:        int             sc_omask;
        !            36:        char            sc_scact; /* action to take on return from a syscall */
        !            37:        char            sc_eosys;
        !            38:        u_short         sc_err;
        !            39:        register_t      sc_ret0;
        !            40:        register_t      sc_ret1;
        !            41:        register_t      sc_args[4];     /* args for the handler */
        !            42:
        !            43:        /* HP/UX trapframe kinda thing */
        !            44:        int             sc_tfflags;
        !            45:        register_t      sc_regs[62];
        !            46:        int             sc_pad;
        !            47:        int             sc_fpregs[64];
        !            48:        int             sc_resv[32];
        !            49:
        !            50: #if 0
        !            51:        int             sc_spare[8];
        !            52:        u_int           sc_flags;
        !            53:        u_int           sc_ctxptr;
        !            54:        hpux_sigset_t   sc_sigmask;
        !            55:        hpux_stack_t    sc_stack;
        !            56:        hpux_siginfo_t  sc_si;
        !            57: #endif
        !            58:
        !            59:        /* call frame follows */
        !            60:        register_t      sc_frame[4+8];
        !            61: };
        !            62:
        !            63: #define        HPUX_SIGCONTEXT_GETCTX  0x01    /* created by getcontext() */
        !            64:
        !            65: /* trapframe flags */
        !            66: #define        HPUX_TFF_TRAP           0x0001
        !            67: #define        HPUX_TFF_SYSCALL        0x0002
        !            68: #define        HPUX_TFF_INTR           0x0004
        !            69: #define        HPUX_TFF_ARGSVALID      0x0010
        !            70: #define        HPUX_TFF_WIDEREGS       0x0040
        !            71:
        !            72: int hpux_cpu_makecmds(struct proc *p, struct exec_package *epp);
        !            73: int hpux_cpu_vmcmd(struct proc *p, struct exec_vmcmd *ev);
        !            74: int hpux_cpu_sysconf_arch(void);
        !            75: int hpux_sys_getcontext(struct proc *p, void *v, register_t *retval);
        !            76: int hpux_to_bsd_uoff(int *off, int *isps, struct proc *p);
        !            77: void hpux_setregs(struct proc *p, struct exec_package *pack,
        !            78:     u_long stack, register_t *retval);
        !            79: void hpux_sendsig(sig_t catcher, int sig, int mask, u_long code,
        !            80:     int type, union sigval val);
        !            81:
        !            82: #endif /* _HPPA_HPUX_MACHDEP_H_ */

CVSweb