home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2MISC / CSDPMI3S.ZIP / SRC / CWSDPMI / GDT.INC < prev    next >
Encoding:
Text File  |  1996-06-15  |  1.3 KB  |  49 lines

  1. ; Copyright (C) 1995,1996 CW Sandmann (sandmann@clio.rice.edu) 1206 Braelinn, Sugarland, TX 77479
  2. ; Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. ;
  4. ; This file is distributed under the terms listed in the document
  5. ; "copying.cws", available from CW Sandmann at the address above.
  6. ; A copy of "copying.cws" should accompany this file; if not, a copy
  7. ; should be available from where this file was obtained.  This file
  8. ; may not be distributed without a verbatim copy of "copying.cws".
  9. ;
  10. ; This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12.  
  13. gdt_s    struc
  14. lim0    dw    ?
  15. base0    dw    ?
  16. base1    db    ?
  17. stype    db    ?    ; type, DT, DPL, present
  18. lim1    db    ?    ; limit, granularity
  19. base2    db    ?
  20. gdt_s    ends
  21.  
  22. IFNDEF run_ring
  23. run_ring equ    3    ; also in gdt.h, must be consistent
  24. ENDIF
  25.  
  26. g_zero  equ    0*8
  27. g_gdt    equ    1*8
  28. g_idt    equ    2*8
  29. g_rcode equ    3*8
  30. g_rdata equ    4*8
  31. g_pcode    equ    5*8+run_ring
  32. g_pdata    equ    6*8+run_ring
  33. g_core  equ    7*8+run_ring
  34. g_BIOSdata equ  8*8
  35.  
  36. g_vcpicode    equ    9*8    ;for VCPI Call Selctor in Protect Mode
  37. g_vcpireserve0  equ    10*8
  38. g_vcpireserve1  equ    11*8
  39.  
  40. g_atss  equ    12*8
  41. g_ctss  equ    13*8
  42. g_itss  equ    14*8
  43. g_ldt    equ    15*8
  44. g_iret    equ    16*8
  45.  
  46. g_num    equ    17
  47.  
  48. spare_stack    equ    128    ;bytes for HW interrupts, generic interrupts
  49.