home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / go32 / gdt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-30  |  1.2 KB  |  49 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. /* History:28,1 */
  16.  
  17. #include "types.h"
  18.  
  19. typedef struct GDT_S {
  20. word16 lim0;
  21. word16 base0;
  22. word8 base1;
  23. word8 stype;    /* type, DT, DPL, present */
  24. word8 lim1;    /* limit, granularity */
  25. word8 base2;
  26. } GDT_S;
  27.  
  28. #define g_zero        0
  29. #define g_gdt        1
  30. #define g_idt        2
  31. #define g_rcode        3
  32. #define g_rdata        4
  33. #define g_pcode        5
  34. #define g_pdata        6
  35. #define g_core        7
  36. #define g_acode        8
  37. #define g_adata        9
  38. #define g_ctss        10
  39. #define g_atss        11    /* set according to tss_ptr in go32() */
  40. #define g_ptss        12
  41. #define g_itss        13
  42. #define g_rc32        14    /* for NPX utils */
  43. #define g_grdr        15
  44. #define g_num        16
  45.  
  46. extern GDT_S gdt[g_num];
  47.  
  48. #define ARENA 0x10000000L
  49.