# tss.h

    00001 /**************************************************************************************
    00002  Copyright (c) 2002 The UbixOS Project
    00003  All rights reserved.
    00004
    00005 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
    00006
    00007 Redistributions of source code must retain the above copyright notice, this list of conditions, the following disclaimer and the list of authors.
    00008 Redistributions in binary form must reproduce the above copyright notice, this list of conditions, the following disclaimer and the list of authors
    00009 in the documentation and/or other materials provided with the distribution. Neither the name of the UbixOS Project nor the names of its
    00010 contributors may be used to endorse or promote products derived from this software without specific prior written permission.
    00011
    00012 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
    00013 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    00014 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
    00015 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
    00016 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
    00017 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    00018 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00019
    00020  $Id$
    00021
    00022 **************************************************************************************/
    00023
    00024 #ifndef _TSS_H
    00025 #define _TSS_H
    00026
    00027 struct tssStruct {
    00028   short back_link;
    00029   short back_link_reserved;
    00030   long  esp0;
    00031   short ss0;
    00032   short ss0_reserved;
    00033   long  esp1;
    00034   short ss1;
    00035   short ss1_reserved;
    00036   long  esp2;
    00037   short ss2;
    00038   short ss2_reserved;
    00039   long  cr3;
    00040   long  eip;
    00041   long  eflags;
    00042   long  eax,ecx,edx,ebx;
    00043   long  esp;
    00044   long  ebp;
    00045   long  esi;
    00046   long  edi;
    00047   short es;
    00048   short es_reserved;
    00049   short cs;
    00050   short cs_reserved;
    00051   short ss;
    00052   short ss_reserved;
    00053   short ds;
    00054   short ds_reserved;
    00055   short fs;
    00056   short fs_reserved;
    00057   short gs;
    00058   short gs_reserved;
    00059   short ldt;
    00060   short ldt_reserved;
    00061   //long  trace_bitmap;   /* bits: trace 0, bitmap 16-31 */
    00062   short trace_bitmap;
    00063   short io_map;
    00064   char  io_space[8192];
    00065   };
    00066
    00067 struct i387Struct {
    00068   long cwd;
    00069   long swd;
    00070   long twd;
    00071   long fip;
    00072   long fcs;
    00073   long foo;
    00074   long fos;
    00075   long st_space[20];   /* 8*10 bytes for each FP-reg = 80 bytes */
    00076   };
    00077
    00078 #endif
    00079