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

Annotation of sys/arch/i386/include/svr4_machdep.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: svr4_machdep.h,v 1.7 2002/03/14 01:26:33 millert Exp $         */
        !             2: /*     $NetBSD: svr4_machdep.h,v 1.5 1995/03/31 02:51:37 christos Exp $         */
        !             3:
        !             4: /*
        !             5:  * Copyright (c) 1994 Christos Zoulas
        !             6:  * All rights reserved.
        !             7:  *
        !             8:  * Redistribution and use in source and binary forms, with or without
        !             9:  * modification, are permitted provided that the following conditions
        !            10:  * are met:
        !            11:  * 1. Redistributions of source code must retain the above copyright
        !            12:  *    notice, this list of conditions and the following disclaimer.
        !            13:  * 2. Redistributions in binary form must reproduce the above copyright
        !            14:  *    notice, this list of conditions and the following disclaimer in the
        !            15:  *    documentation and/or other materials provided with the distribution.
        !            16:  * 3. The name of the author may not be used to endorse or promote products
        !            17:  *    derived from this software without specific prior written permission
        !            18:  *
        !            19:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            20:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            21:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            22:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            23:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            24:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            25:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            26:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            27:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            28:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            29:  */
        !            30:
        !            31: #ifndef        _I386_SVR4_MACHDEP_H_
        !            32: #define        _I386_SVR4_MACHDEP_H_
        !            33:
        !            34: #include <compat/svr4/svr4_types.h>
        !            35:
        !            36: /*
        !            37:  * Machine dependent portions [X86]
        !            38:  */
        !            39:
        !            40: #define SVR4_X86_GS    0
        !            41: #define SVR4_X86_FS    1
        !            42: #define SVR4_X86_ES    2
        !            43: #define SVR4_X86_DS    3
        !            44: #define SVR4_X86_EDI   4
        !            45: #define SVR4_X86_ESI   5
        !            46: #define SVR4_X86_EBP   6
        !            47: #define SVR4_X86_ESP   7
        !            48: #define SVR4_X86_EBX   8
        !            49: #define SVR4_X86_EDX   9
        !            50: #define SVR4_X86_ECX   10
        !            51: #define SVR4_X86_EAX   11
        !            52: #define SVR4_X86_TRAPNO        12
        !            53: #define SVR4_X86_ERR   13
        !            54: #define SVR4_X86_EIP   14
        !            55: #define SVR4_X86_CS    15
        !            56: #define SVR4_X86_EFL   16
        !            57: #define SVR4_X86_UESP  17
        !            58: #define SVR4_X86_SS    18
        !            59: #define SVR4_X86_MAXREG        19
        !            60:
        !            61:
        !            62: typedef int svr4_greg_t;
        !            63: typedef svr4_greg_t svr4_gregset_t[SVR4_X86_MAXREG];
        !            64:
        !            65: typedef struct {
        !            66:     int                f_x87[62];      /* x87 registers */
        !            67:     long       f_weitek[33];   /* weitek */
        !            68: } svr4_fregset_t;
        !            69:
        !            70: struct svr4_ucontext;
        !            71:
        !            72: #ifdef _KERNEL
        !            73: void svr4_getcontext(struct proc *, struct svr4_ucontext *, int, int);
        !            74: int svr4_setcontext(struct proc *, struct svr4_ucontext *);
        !            75: void svr4_sendsig(sig_t, int, int, u_long, int, union sigval);
        !            76: #endif
        !            77:
        !            78: typedef struct {
        !            79:        svr4_gregset_t  greg;
        !            80:        svr4_fregset_t  freg;
        !            81: } svr4_mcontext_t;
        !            82:
        !            83: /*
        !            84:  * SYSARCH numbers
        !            85:  */
        !            86: #define SVR4_SYSARCH_FPHW      40
        !            87: #define SVR4_SYSARCH_DSCR      75
        !            88:
        !            89: struct svr4_ssd {
        !            90:        unsigned int selector;
        !            91:        unsigned int base;
        !            92:        unsigned int limit;
        !            93:        unsigned int access1;
        !            94:        unsigned int access2;
        !            95: };
        !            96:
        !            97: #define SVR4_SYSARCH_GOSF      114     /* get OS features vector */
        !            98:
        !            99: /*
        !           100:  * Processor traps
        !           101:  */
        !           102: #define        SVR4_T_DIVIDE           0
        !           103: #define        SVR4_T_TRCTRAP          1
        !           104: #define        SVR4_T_NMI              2
        !           105: #define        SVR4_T_BPTFLT           3
        !           106: #define        SVR4_T_OFLOW            4
        !           107: #define        SVR4_T_BOUND            5
        !           108: #define        SVR4_T_PRIVINFLT        6
        !           109: #define        SVR4_T_DNA              7
        !           110: #define        SVR4_T_DOUBLEFLT        8
        !           111: #define        SVR4_T_FPOPFLT          9
        !           112: #define        SVR4_T_TSSFLT           10
        !           113: #define        SVR4_T_SEGNPFLT         11
        !           114: #define        SVR4_T_STKFLT           12
        !           115: #define        SVR4_T_PROTFLT          13
        !           116: #define        SVR4_T_PAGEFLT          14
        !           117: #define        SVR4_T_ALIGNFLT         17
        !           118:
        !           119: #endif /* !_I386_SVR4_MACHDEP_H_ */

CVSweb