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.

157 lines
2.8 KiB

  1. IFDEF NEC_98
  2. FIXED_NTVDMSTATE_SEGMENT equ 00060H
  3. else
  4. FIXED_NTVDMSTATE_SEGMENT equ 00070H
  5. endif
  6. FIXED_NTVDMSTATE_OFFSET equ 00014H
  7. FIXED_NTVDMSTATE_LINEAR EQU ((FIXED_NTVDMSTATE_SEGMENT SHL 4 ) + FIXED_NTVDMSTATE_OFFSET)
  8. FIXED_NTVDMSTATE_SIZE equ 00004H
  9. ;
  10. ; VdmFlags
  11. ;
  12. VDM_INT_HARDWARE equ 00001H
  13. VDM_INT_TIMER equ 00002H
  14. VDM_INTERRUPT_PENDING equ 00003H
  15. VDM_INTS_HOOKED_IN_PM equ 00004H
  16. VDM_BREAK_EXCEPTIONS equ 00008H
  17. VDM_BREAK_DEBUGGER equ 00010H
  18. VDM_PROFILE equ 00020H
  19. VDM_ANALYZE_PROFILE equ 00040H
  20. VDM_TRACE_HISTORY equ 00080H
  21. VDM_32BIT_APP equ 00100H
  22. VDM_VIRTUAL_INTERRUPTS equ 00200H
  23. VDM_VIRTUAL_AC equ 040000H
  24. VDM_VIRTUAL_NT equ 04000H
  25. MIPS_BIT_MASK equ 00400H
  26. VDM_ON_MIPS equ 00400H
  27. VDM_EXEC equ 00800H
  28. VDM_RM equ 01000H
  29. VDM_USE_DBG_VDMEVENT equ 04000H
  30. VDM_WOWBLOCKED equ 0100000H
  31. VDM_IDLEACTIVITY equ 0200000H
  32. VDM_WOWHUNGAPP equ 0800000H
  33. VDM_PE_MASK equ 080000000H
  34. ;
  35. ; Interrupt handler flags
  36. ;
  37. VDM_INT_INT_GATE equ 00001H
  38. VDM_INT_TRAP_GATE equ 00000H
  39. VDM_INT_32 equ 00002H
  40. VDM_INT_16 equ 00000H
  41. VDM_INT_HOOKED equ 00004H
  42. ;
  43. ; EFlags values
  44. ;
  45. EFLAGS_TF_MASK equ 00100H
  46. EFLAGS_INTERRUPT_MASK equ 00200H
  47. EFLAGS_IOPL_MASK equ 03000H
  48. EFLAGS_NT_MASK equ 04000H
  49. ;
  50. ; Selector Flags
  51. ;
  52. SEL_TYPE_READ equ 00001H
  53. SEL_TYPE_WRITE equ 00002H
  54. SEL_TYPE_EXECUTE equ 00004H
  55. SEL_TYPE_BIG equ 00008H
  56. SEL_TYPE_ED equ 00010H
  57. SEL_TYPE_2GIG equ 00020H
  58. ;
  59. ; VdmEvent Enumerations
  60. ;
  61. VdmIO equ 00000H
  62. VdmStringIO equ 00001H
  63. VdmMemAccess equ 00002H
  64. VdmIntAck equ 00003H
  65. VdmBop equ 00004H
  66. VdmError equ 00005H
  67. VdmIrq13 equ 00006H
  68. VdmMaxEvent equ 00007H
  69. ;
  70. ; VdmTib offsets
  71. ;
  72. VtMonitorContext equ 0000CH
  73. VtVdmContext equ 002D8H
  74. VtInterruptTable equ 00004H
  75. VtFaultTable equ 00008H
  76. VtEventInfo equ 005A4H
  77. VtEIEvent equ 005A8H
  78. VtEIInstSize equ 005ACH
  79. VtEIBopNumber equ 005B0H
  80. VtEIIntAckInfo equ 005B0H
  81. VtDpmiInfo equ 00634H
  82. EiEvent equ 00004H
  83. EiInstructionSize equ 00008H
  84. EiBopNumber equ 0000CH
  85. EiIntAckInfo equ 0000CH
  86. ;
  87. ; WOW TD offsets
  88. ;
  89. WtdFastWowEsp equ 00008H
  90. ;
  91. ; VdmInterrupHandler offsets
  92. ;
  93. ViCsSelector equ 00000H
  94. ViEip equ 00004H
  95. ViFlags equ 00002H
  96. VDM_INTERRUPT_HANDLER_SIZE equ 00008H
  97. ;
  98. ; VdmFaultHandler offsets
  99. ;
  100. VfCsSelector equ 00000H
  101. VfEip equ 00004H
  102. VfSsSelector equ 00002H
  103. VfEsp equ 00008H
  104. VfFlags equ 0000CH
  105. VDM_FAULT_HANDLER_SIZE equ 00010H
  106. ;
  107. ; VdmDpmiInfo offsets
  108. ;
  109. VpLockCount equ 00000H
  110. VpFlags equ 00002H
  111. VpSsSelector equ 00004H
  112. VpSaveSsSelector equ 00006H
  113. VpSaveEsp equ 00008H
  114. VpSaveEip equ 0000CH
  115. VpDosxIntIret equ 00010H
  116. VpDosxIntIretD equ 00014H
  117. VpDosxFaultIret equ 00018H
  118. VpDosxFaultIretD equ 0001CH
  119. VpDosxRmReflector equ 00020H
  120. ;
  121. ; VdmTrace codes
  122. ;
  123. VDMTR_KERNEL_OP_PM equ 00001H
  124. VDMTR_KERNEL_OP_V86 equ 00002H
  125. VDMTR_KERNEL_HW_INT equ 00003H
  126. ;
  127. ; Misc defines
  128. ;
  129. DBG_SINGLESTEP equ 00005H
  130. DBG_BREAK equ 00006H
  131. DBG_GPFAULT equ 00007H
  132. DBG_STACKFAULT equ 00010H
  133. STATUS_VDM_EVENT equ 040000005H