Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.3 KiB

  1. ; Copyright (c) Microsoft Corporation 1988-1991. All Rights Reserved.
  2. ;****************************************************************
  3. ;* *
  4. ;* DXROM.INC -- ROM Defintions for Dos Extender *
  5. ;* *
  6. ;****************************************************************
  7. ;* Revision History: *
  8. ;* *
  9. ;* 11/05/90 jimmat Created. *
  10. ;* *
  11. ;****************************************************************
  12. IFDEF ROM
  13. ; Define the ROM Table of Contents structure. Note that this structure
  14. ; is defined in other pieces of software and all must be updated if any
  15. ; are. Currently known to be defined in the ROM Image Builder (RIB) and
  16. ; the ROM Test loader.
  17. ROMTOC SEGMENT AT 0
  18. szID db 10 dup (?) ; ID string
  19. DOSX_CSIP dd ? ; DOSX initial CS:IP (seg:off)
  20. KRNL_CSIP dd ? ; Kernel initial CS:IP (sel:off)
  21. lmaROMLDT dd ? ; lma of ROM prototype LDT
  22. cROMsels dw ? ; # descriptors used in ROM proto LDT
  23. FirstROMsel dw ? ; first LDT selector in ROM proto LDT
  24. offSysDir dw ? ; offset to system directory string
  25. cModules dw ? ; # modules defined in ROM TOC
  26. ModEntries db ? ; start of module entries
  27. ; module entries follow at this point...
  28. ROMTOC ENDS
  29. RomIntVector = 31h ;Interrupt vector to use
  30. ; This macro returns the DOS Extender data segment paragraph address in AX.
  31. ; It must only be used by real mode code.
  32. GetRMDataSeg macro
  33. ifndef GetDXDataRM
  34. extrn GetDXDataRM:NEAR
  35. endif
  36. call GetDXDataRM
  37. endm
  38. ; This macro sets DS to point to the DOS Extender data segment. It must
  39. ; only be used by real mode code.
  40. SetRMDataSeg macro
  41. ifndef SetDXDataRM
  42. extrn SetDXDataRM:NEAR
  43. endif
  44. call SetDXDataRM
  45. endm
  46. ; This macro returns the DOS Extender data segment paragraph address in AX.
  47. ; It must only be used by protected mode code.
  48. GetPMDataSeg macro
  49. ifndef GetDXDataPM
  50. extrn GetDXDataPM:NEAR
  51. endif
  52. call GetDXDataPM
  53. endm
  54. ; This macro sets DS to point to the DOS Extender data segment. It must
  55. ; only be used by protected mode code.
  56. SetPMDataSeg macro
  57. ifndef SetDXDataPM
  58. extrn SetDXDataPM:NEAR
  59. endif
  60. call SetDXDataPM
  61. endm
  62. ENDIF