home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / i386 / tss.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-25  |  4.6 KB  |  114 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon 
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    tss.h,v $
  29.  * Revision 2.2  92/05/25  14:43:11  rwd
  30.  *     Added for compatibilty for ptrace.
  31.  *     [92/05/23            rwd]
  32.  * 
  33.  *
  34.  */
  35.  
  36. /*-
  37.  * Copyright (c) 1990 The Regents of the University of California.
  38.  * All rights reserved.
  39.  *
  40.  * This code is derived from software contributed to Berkeley by
  41.  * William Jolitz.
  42.  *
  43.  * Redistribution and use in source and binary forms, with or without
  44.  * modification, are permitted provided that the following conditions
  45.  * are met:
  46.  * 1. Redistributions of source code must retain the above copyright
  47.  *    notice, this list of conditions and the following disclaimer.
  48.  * 2. Redistributions in binary form must reproduce the above copyright
  49.  *    notice, this list of conditions and the following disclaimer in the
  50.  *    documentation and/or other materials provided with the distribution.
  51.  * 3. All advertising materials mentioning features or use of this software
  52.  *    must display the following acknowledgement:
  53.  *    This product includes software developed by the University of
  54.  *    California, Berkeley and its contributors.
  55.  * 4. Neither the name of the University nor the names of its contributors
  56.  *    may be used to endorse or promote products derived from this software
  57.  *    without specific prior written permission.
  58.  *
  59.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  60.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  61.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  62.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  63.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  64.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  65.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  66.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  67.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  68.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  69.  * SUCH DAMAGE.
  70.  *
  71.  *    @(#)tss.h    5.4 (Berkeley) 1/18/91
  72.  */
  73.  
  74. /*
  75.  * Intel 386 Context Data Type
  76.  */
  77.  
  78. struct i386tss {
  79.     int    tss_link;    /* actually 16 bits: top 16 bits must be zero */
  80.     int    tss_esp0;     /* kernel stack pointer priviledge level 0 */
  81. #define    tss_ksp    tss_esp0
  82.     int    tss_ss0;    /* actually 16 bits: top 16 bits must be zero */
  83.     int    tss_esp1;     /* kernel stack pointer priviledge level 1 */
  84.     int    tss_ss1;    /* actually 16 bits: top 16 bits must be zero */
  85.     int    tss_esp2;     /* kernel stack pointer priviledge level 2 */
  86.     int    tss_ss2;    /* actually 16 bits: top 16 bits must be zero */
  87.     /* struct  ptd *tss_cr3;     /* page table directory */
  88.     int    tss_cr3;     /* page table directory */
  89. #define    tss_ptd    tss_cr3
  90.     int    tss_eip;     /* program counter */
  91. #define    tss_pc    tss_eip
  92.     int    tss_eflags;     /* program status longword */
  93. #define    tss_psl    tss_eflags
  94.     int    tss_eax; 
  95.     int    tss_ecx; 
  96.     int    tss_edx; 
  97.     int    tss_ebx; 
  98.     int    tss_esp;     /* user stack pointer */
  99. #define    tss_usp    tss_esp
  100.     int    tss_ebp;     /* user frame pointer */
  101. #define    tss_fp    tss_ebp
  102.     int    tss_esi; 
  103.     int    tss_edi; 
  104.     int    tss_es;        /* actually 16 bits: top 16 bits must be zero */
  105.     int    tss_cs;        /* actually 16 bits: top 16 bits must be zero */
  106.     int    tss_ss;        /* actually 16 bits: top 16 bits must be zero */
  107.     int    tss_ds;        /* actually 16 bits: top 16 bits must be zero */
  108.     int    tss_fs;        /* actually 16 bits: top 16 bits must be zero */
  109.     int    tss_gs;        /* actually 16 bits: top 16 bits must be zero */
  110.     int    tss_ldt;    /* actually 16 bits: top 16 bits must be zero */
  111.     int    tss_ioopt;    /* options & io offset bitmap: currently zero */
  112.                 /* XXX unimplemented .. i/o permission bitmap */
  113. };
  114.