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 / GDT.H < prev    next >
C/C++ Source or Header  |  1992-04-13  |  2KB  |  59 lines

  1. /* This is file GDT.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. /* Modified for VCPI Implement by Y.Shibata Aug 5th 1991 */
  16. /* History:28,1 */
  17.  
  18. #include "types.h"
  19.  
  20. typedef struct GDT_S {
  21. word16 lim0;
  22. word16 base0;
  23. word8 base1;
  24. word8 stype;    /* type, DT, DPL, present */
  25. word8 lim1;    /* limit, granularity */
  26. word8 base2;
  27. } GDT_S;
  28.  
  29. #define g_zero        0
  30. #define g_gdt        1
  31. #define g_idt        2
  32. #define g_rcode        3
  33. #define g_rdata        4
  34. #define g_pcode        5
  35. #define g_pdata        6
  36. #define g_core        7
  37. #define g_acode        8
  38. #define g_adata        9
  39. #define g_ctss        10
  40. #define g_atss        11    /* set according to tss_ptr in go32() */
  41. #define g_ptss        12
  42. #define g_itss        13
  43. #define g_rc32        14    /* for NPX utils */
  44. #define g_grdr        15
  45.  
  46. #define    g_vcpicode    16    /* for VCPI Call Selector in Protect Mode */
  47. #define    g_vcpireserve0    17
  48. #define    g_vcpireserve1    18
  49.  
  50. #define g_v74        19
  51. #define g_v78        20
  52. #define g_v79        21
  53.  
  54. #define g_num        22
  55.  
  56. extern GDT_S gdt[g_num];
  57.  
  58. #define ARENA 0x10000000L
  59.