The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/svr4/svr4_machdep.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1998 Mark Newton
    3  * Copyright (c) 1994 Christos Zoulas
    4  * All rights reserved.
    5  *
    6  * Redistribution and use in source and binary forms, with or without
    7  * modification, are permitted provided that the following conditions
    8  * are met:
    9  * 1. Redistributions of source code must retain the above copyright
   10  *    notice, this list of conditions and the following disclaimer.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. The name of the author may not be used to endorse or promote products
   15  *    derived from this software without specific prior written permission
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   27  *
   28  * $FreeBSD: releng/5.1/sys/i386/svr4/svr4_machdep.h 92765 2002-03-20 07:51:46Z alfred $
   29  */
   30 
   31 #ifndef _I386_SVR4_MACHDEP_H_
   32 #define _I386_SVR4_MACHDEP_H_
   33 
   34 #if !defined(SVR4_MACHDEP_JUST_REGS)
   35 #include <sys/signal.h>
   36 #include <compat/svr4/svr4_types.h>
   37 #endif
   38 
   39 /*
   40  * Machine dependent portions [X86]
   41  */
   42 
   43 #define SVR4_X86_GS     0
   44 #define SVR4_X86_FS     1
   45 #define SVR4_X86_ES     2
   46 #define SVR4_X86_DS     3
   47 #define SVR4_X86_EDI    4
   48 #define SVR4_X86_ESI    5
   49 #define SVR4_X86_EBP    6
   50 #define SVR4_X86_ESP    7
   51 #define SVR4_X86_EBX    8
   52 #define SVR4_X86_EDX    9
   53 #define SVR4_X86_ECX    10
   54 #define SVR4_X86_EAX    11
   55 #define SVR4_X86_TRAPNO 12
   56 #define SVR4_X86_ERR    13
   57 #define SVR4_X86_EIP    14
   58 #define SVR4_X86_CS     15
   59 #define SVR4_X86_EFL    16
   60 #define SVR4_X86_UESP   17
   61 #define SVR4_X86_SS     18
   62 #define SVR4_X86_MAXREG 19
   63 
   64 
   65 #if !defined(SVR4_MACHDEP_JUST_REGS)
   66 typedef int svr4_greg_t;
   67 typedef svr4_greg_t svr4_gregset_t[SVR4_X86_MAXREG];
   68 
   69 typedef struct {
   70     int         f_x87[62];      /* x87 registers */
   71     long        f_weitek[33];   /* weitek */
   72 } svr4_fregset_t;
   73 
   74 struct thread;
   75 struct svr4_ucontext;
   76 
   77 void svr4_getcontext(struct thread *, struct svr4_ucontext *, sigset_t *, int);
   78 int svr4_setcontext(struct thread *p, struct svr4_ucontext *);
   79 
   80 typedef struct {
   81         svr4_gregset_t  greg;
   82         svr4_fregset_t  freg;
   83 } svr4_mcontext_t;
   84 
   85 /*
   86  * SYSARCH numbers
   87  */
   88 #define SVR4_SYSARCH_FPHW       40
   89 #define SVR4_SYSARCH_DSCR       75
   90 
   91 struct svr4_ssd {
   92         unsigned int selector;
   93         unsigned int base;
   94         unsigned int limit;
   95         unsigned int access1;
   96         unsigned int access2;
   97 };
   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 /* !SVR4_MACHDEP_JUST_REGS */
  120 #endif /* !_I386_SVR4_MACHDEP_H_ */

Cache object: 326602a3705bc166b12d113b41a2d3dd


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.