home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cl5sr386.zip / GO32 / TSS.H < prev    next >
C/C++ Source or Header  |  1992-04-13  |  2KB  |  68 lines

  1. /* This is file TSS.H */
  2. /*
  3. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. /* History:51,52 */
  16.  
  17. typedef struct TSS {
  18.     unsigned short tss_back_link;
  19.     unsigned short res0;
  20.     unsigned long  tss_esp0;
  21.     unsigned short tss_ss0;
  22.     unsigned short res1;
  23.     unsigned long  tss_esp1;
  24.     unsigned short tss_ss1;
  25.     unsigned short res2;
  26.     unsigned long  tss_esp2;
  27.     unsigned short tss_ss2;
  28.     unsigned short res3;
  29.     unsigned long  tss_cr3;
  30.     unsigned long  tss_eip;
  31.     unsigned long  tss_eflags;
  32.     unsigned long  tss_eax;
  33.     unsigned long  tss_ecx;
  34.     unsigned long  tss_edx;
  35.     unsigned long  tss_ebx;
  36.     unsigned long  tss_esp;
  37.     unsigned long  tss_ebp;
  38.     unsigned long  tss_esi;
  39.     unsigned long  tss_edi;
  40.     unsigned short tss_es;
  41.     unsigned short res4;
  42.     unsigned short tss_cs;
  43.     unsigned short res5;
  44.     unsigned short tss_ss;
  45.     unsigned short res6;
  46.     unsigned short tss_ds;
  47.     unsigned short res7;
  48.     unsigned short tss_fs;
  49.     unsigned short res8;
  50.     unsigned short tss_gs;
  51.     unsigned short res9;
  52.     unsigned short tss_ldt;
  53.     unsigned short res10;
  54.     unsigned short tss_trap;
  55.     unsigned short tss_iomap;
  56.     unsigned long  tss_cr2;
  57.     unsigned long  tss_error;
  58.     unsigned char  tss_irqn;
  59.     unsigned char  res11;
  60.     unsigned short res12;
  61.     unsigned short stack0[512];
  62.     unsigned short tss_stack[1];
  63. } TSS;
  64.  
  65. extern TSS c_tss, a_tss, o_tss, p_tss, i_tss, f_tss;
  66. extern TSS v74_tss, v78_tss, v79_tss;
  67. extern TSS *tss_ptr;
  68.