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.

1360 lines
27 KiB

  1. include kxamd64.inc
  2. ;
  3. ; Pointer size in bytes
  4. ;
  5. SizeofPointer equ 00008H
  6. ;
  7. ; Process State Enumerated Type Values
  8. ;
  9. ProcessInMemory equ 00000H
  10. ProcessOutOfMemory equ 00001H
  11. ProcessInTransition equ 00002H
  12. ;
  13. ; Thread State Enumerated Type Values
  14. ;
  15. Initialized equ 00000H
  16. Ready equ 00001H
  17. Running equ 00002H
  18. Standby equ 00003H
  19. Terminated equ 00004H
  20. Waiting equ 00005H
  21. ;
  22. ; Wait Reason and Wait Type Enumerated Type Values
  23. ;
  24. WrExecutive equ 00000H
  25. WrEventPair equ 0000EH
  26. WaitAny equ 00001H
  27. WaitAll equ 00000H
  28. ;
  29. ; Apc State Structure Offset Definitions
  30. ;
  31. AsApcListHead equ 00000H
  32. AsProcess equ 00020H
  33. AsKernelApcInProgress equ 00028H
  34. AsKernelApcPending equ 00029H
  35. AsUserApcPending equ 0002AH
  36. ;
  37. ; Bug Check Code Definitions
  38. ;
  39. APC_INDEX_MISMATCH equ 00001H
  40. ATTEMPTED_SWITCH_FROM_DPC equ 000B8H
  41. DATA_BUS_ERROR equ 0002EH
  42. DATA_COHERENCY_EXCEPTION equ 00055H
  43. HAL1_INITIALIZATION_FAILED equ 00061H
  44. INSTRUCTION_BUS_ERROR equ 0002FH
  45. INSTRUCTION_COHERENCY_EXCEPTION equ 00056H
  46. INTERRUPT_EXCEPTION_NOT_HANDLED equ 0003DH
  47. INTERRUPT_UNWIND_ATTEMPTED equ 0003CH
  48. INVALID_AFFINITY_SET equ 00003H
  49. INVALID_DATA_ACCESS_TRAP equ 00004H
  50. IRQL_GT_ZERO_AT_SYSTEM_SERVICE equ 0004AH
  51. IRQL_NOT_LESS_OR_EQUAL equ 0000AH
  52. KMODE_EXCEPTION_NOT_HANDLED equ 0001EH
  53. NMI_HARDWARE_FAILURE equ 00080H
  54. NO_USER_MODE_CONTEXT equ 0000EH
  55. PAGE_FAULT_WITH_INTERRUPTS_OFF equ 00049H
  56. PANIC_STACK_SWITCH equ 0002BH
  57. SPIN_LOCK_INIT_FAILURE equ 00081H
  58. SYSTEM_EXIT_OWNED_MUTEX equ 00039H
  59. SYSTEM_SERVICE_EXCEPTION equ 0003BH
  60. SYSTEM_UNWIND_PREVIOUS_USER equ 0003AH
  61. TRAP_CAUSE_UNKNOWN equ 00012H
  62. UNEXPECTED_KERNEL_MODE_TRAP equ 0007FH
  63. HARDWARE_INTERRUPT_STORM equ 000F2H
  64. ;
  65. ; Breakpoint type definitions
  66. ;
  67. DBG_STATUS_CONTROL_C equ 00001H
  68. ;
  69. ; Client Id Structure Offset Definitions
  70. ;
  71. CidUniqueProcess equ 00000H
  72. CidUniqueThread equ 00008H
  73. ;
  74. ; Critical Section Structure Offset Definitions
  75. ;
  76. CsDebugInfo equ 00000H
  77. CsLockCount equ 00008H
  78. CsRecursionCount equ 0000CH
  79. CsOwningThread equ 00010H
  80. CsLockSemaphore equ 00018H
  81. CsSpinCount equ 00020H
  82. ;
  83. ; Critical Section Debug Information Structure Offset Definitions
  84. ;
  85. CsType equ 00000H
  86. CsCreatorBackTraceIndex equ 00002H
  87. CsCriticalSection equ 00008H
  88. CsProcessLocksList equ 00010H
  89. CsEntryCount equ 00020H
  90. CsContentionCount equ 00024H
  91. ;
  92. ; Exception Record Offset, Flag, and Enumerated Type Definitions
  93. ;
  94. EXCEPTION_NONCONTINUABLE equ 00001H
  95. EXCEPTION_UNWINDING equ 00002H
  96. EXCEPTION_EXIT_UNWIND equ 00004H
  97. EXCEPTION_STACK_INVALID equ 00008H
  98. EXCEPTION_NESTED_CALL equ 00010H
  99. EXCEPTION_TARGET_UNWIND equ 00020H
  100. EXCEPTION_COLLIDED_UNWIND equ 00040H
  101. EXCEPTION_UNWIND equ 00066H
  102. EXCEPTION_EXECUTE_HANDLER equ 00001H
  103. EXCEPTION_CONTINUE_SEARCH equ 00000H
  104. EXCEPTION_CONTINUE_EXECUTION equ 0FFFFFFFFH
  105. ExceptionContinueExecution equ 00000H
  106. ExceptionContinueSearch equ 00001H
  107. ExceptionNestedException equ 00002H
  108. ExceptionCollidedUnwind equ 00003H
  109. ErExceptionCode equ 00000H
  110. ErExceptionFlags equ 00004H
  111. ErExceptionRecord equ 00008H
  112. ErExceptionAddress equ 00010H
  113. ErNumberParameters equ 00018H
  114. ErExceptionInformation equ 00020H
  115. ExceptionRecordLength equ 000A0H
  116. ;
  117. ; Fast Mutex Structure Offset Definitions
  118. ;
  119. FmCount equ 00000H
  120. FmOwner equ 00008H
  121. FmContention equ 00010H
  122. FmEvent equ 00018H
  123. FmOldIrql equ 00030H
  124. ;
  125. ; Interrupt Priority Request Level Definitions
  126. ;
  127. PASSIVE_LEVEL equ 00000H
  128. APC_LEVEL equ 00001H
  129. DISPATCH_LEVEL equ 00002H
  130. CLOCK_LEVEL equ 0000DH
  131. IPI_LEVEL equ 0000EH
  132. POWER_LEVEL equ 0000EH
  133. PROFILE_LEVEL equ 0000FH
  134. HIGH_LEVEL equ 0000FH
  135. SYNCH_LEVEL equ 00002H
  136. ;
  137. ; Large Integer Structure Offset Definitions
  138. ;
  139. LiLowPart equ 00000H
  140. LiHighPart equ 00004H
  141. ;
  142. ; List Entry Structure Offset Definitions
  143. ;
  144. LsFlink equ 00000H
  145. LsBlink equ 00008H
  146. ;
  147. ; String Structure Offset Definitions
  148. ;
  149. StrLength equ 00000H
  150. StrMaximumLength equ 00002H
  151. StrBuffer equ 00008H
  152. ;
  153. ; Time Structure Offset Definitions
  154. ;
  155. TmLowTime equ 00000H
  156. TmHighTime equ 00004H
  157. ;
  158. ; Thread Switch Counter Offset Definitions
  159. ;
  160. TwFindAny equ 00000H
  161. TwFindIdeal equ 00004H
  162. TwFindLast equ 00008H
  163. TwIdleAny equ 0000CH
  164. TwIdleCurrent equ 00010H
  165. TwIdleIdeal equ 00014H
  166. TwIdleLast equ 00018H
  167. TwPreemptAny equ 0001CH
  168. TwPreemptCurrent equ 00020H
  169. TwPreemptLast equ 00024H
  170. TwSwitchToIdle equ 00028H
  171. ;
  172. ; Status Code Definitions
  173. ;
  174. STATUS_ACCESS_VIOLATION equ 0C0000005H
  175. STATUS_ARRAY_BOUNDS_EXCEEDED equ 0C000008CH
  176. STATUS_BAD_COMPRESSION_BUFFER equ 0C0000242H
  177. STATUS_BREAKPOINT equ 080000003H
  178. STATUS_DATATYPE_MISALIGNMENT equ 080000002H
  179. STATUS_FLOAT_DENORMAL_OPERAND equ 0C000008DH
  180. STATUS_FLOAT_DIVIDE_BY_ZERO equ 0C000008EH
  181. STATUS_FLOAT_INEXACT_RESULT equ 0C000008FH
  182. STATUS_FLOAT_INVALID_OPERATION equ 0C0000090H
  183. STATUS_FLOAT_OVERFLOW equ 0C0000091H
  184. STATUS_FLOAT_STACK_CHECK equ 0C0000092H
  185. STATUS_FLOAT_UNDERFLOW equ 0C0000093H
  186. STATUS_FLOAT_MULTIPLE_FAULTS equ 0C00002B4H
  187. STATUS_FLOAT_MULTIPLE_TRAPS equ 0C00002B5H
  188. STATUS_GUARD_PAGE_VIOLATION equ 080000001H
  189. STATUS_ILLEGAL_FLOAT_CONTEXT equ 0C000014AH
  190. STATUS_ILLEGAL_INSTRUCTION equ 0C000001DH
  191. STATUS_INSTRUCTION_MISALIGNMENT equ 0C00000AAH
  192. STATUS_INVALID_HANDLE equ 0C0000008H
  193. STATUS_INVALID_LOCK_SEQUENCE equ 0C000001EH
  194. STATUS_INVALID_OWNER equ 0C000005AH
  195. STATUS_INVALID_PARAMETER_1 equ 0C00000EFH
  196. STATUS_INVALID_SYSTEM_SERVICE equ 0C000001CH
  197. STATUS_INTEGER_DIVIDE_BY_ZERO equ 0C0000094H
  198. STATUS_INTEGER_OVERFLOW equ 0C0000095H
  199. STATUS_IN_PAGE_ERROR equ 0C0000006H
  200. STATUS_KERNEL_APC equ 00100H
  201. STATUS_LONGJUMP equ 080000026H
  202. STATUS_NO_CALLBACK_ACTIVE equ 0C0000258H
  203. STATUS_NO_EVENT_PAIR equ 0C000014EH
  204. STATUS_PRIVILEGED_INSTRUCTION equ 0C0000096H
  205. STATUS_SINGLE_STEP equ 080000004H
  206. STATUS_STACK_OVERFLOW equ 0C00000FDH
  207. STATUS_SUCCESS equ 00000H
  208. STATUS_THREAD_IS_TERMINATING equ 0C000004BH
  209. STATUS_TIMEOUT equ 00102H
  210. STATUS_UNWIND equ 0C0000027H
  211. STATUS_WAKE_SYSTEM_DEBUGGER equ 080000007H
  212. ;
  213. ; APC Object Structure Offset Definitions
  214. ;
  215. ApType equ 00000H
  216. ApSize equ 00002H
  217. ApThread equ 00008H
  218. ApApcListEntry equ 00010H
  219. ApKernelRoutine equ 00020H
  220. ApRundownRoutine equ 00028H
  221. ApNormalRoutine equ 00030H
  222. ApNormalContext equ 00038H
  223. ApSystemArgument1 equ 00040H
  224. ApSystemArgument2 equ 00048H
  225. ApApcStateIndex equ 00050H
  226. ApApcMode equ 00051H
  227. ApInserted equ 00052H
  228. ApcObjectLength equ 00058H
  229. ;
  230. ; DPC object Structure Offset Definitions
  231. ;
  232. DpType equ 00000H
  233. DpNumber equ 00002H
  234. DpImportance equ 00003H
  235. DpDpcListEntry equ 00008H
  236. DpDeferredRoutine equ 00018H
  237. DpDeferredContext equ 00020H
  238. DpSystemArgument1 equ 00028H
  239. DpSystemArgument2 equ 00030H
  240. DpLock equ 00038H
  241. DpcObjectLength equ 00040H
  242. ;
  243. ; Device Queue Object Structure Offset Definitions
  244. ;
  245. DvType equ 00000H
  246. DvSize equ 00002H
  247. DvDeviceListHead equ 00008H
  248. DvSpinLock equ 00018H
  249. DvBusy equ 00020H
  250. DeviceQueueObjectLength equ 00028H
  251. ;
  252. ; Device Queue Entry Structure Offset Definitions
  253. ;
  254. DeDeviceListEntry equ 00000H
  255. DeSortKey equ 00010H
  256. DeInserted equ 00014H
  257. DeviceQueueEntryLength equ 00018H
  258. ;
  259. ; Event Object Structure Offset Definitions
  260. ;
  261. EvType equ 00000H
  262. EvSize equ 00002H
  263. EvSignalState equ 00004H
  264. EvWaitListHead equ 00008H
  265. EventObjectLength equ 00018H
  266. ;
  267. ; Event Pair Object Structure Offset Definitions
  268. ;
  269. EpType equ 00000H
  270. EpSize equ 00002H
  271. EpEventLow equ 00008H
  272. EpEventHigh equ 00020H
  273. ;
  274. ; Interrupt Object Structure Offset Definitions
  275. ;
  276. InLevelSensitive equ 00000H
  277. InLatched equ 00001H
  278. InType equ 00000H
  279. InSize equ 00002H
  280. InInterruptListEntry equ 00008H
  281. InServiceRoutine equ 00018H
  282. InServiceContext equ 00020H
  283. InSpinLock equ 00028H
  284. InTickCount equ 00030H
  285. InActualLock equ 00038H
  286. InDispatchAddress equ 00040H
  287. InVector equ 00048H
  288. InIrql equ 0004CH
  289. InSynchronizeIrql equ 0004DH
  290. InFloatingSave equ 0004EH
  291. InConnected equ 0004FH
  292. InNumber equ 00050H
  293. InShareVector equ 00051H
  294. InMode equ 00054H
  295. InServiceCount equ 00058H
  296. InDispatchCount equ 0005CH
  297. InTrapFrame equ 00060H
  298. InDispatchCode equ 00068H
  299. InterruptObjectLength equ 00210H
  300. ;
  301. ; Process Object Structure Offset Definitions
  302. ;
  303. PrType equ 00000H
  304. PrSize equ 00002H
  305. PrSignalState equ 00004H
  306. PrProfileListHead equ 00018H
  307. PrDirectoryTableBase equ 00028H
  308. PrIopmOffset equ 00038H
  309. PrActiveProcessors equ 00040H
  310. PrKernelTime equ 00048H
  311. PrUserTime equ 0004CH
  312. PrReadyListHead equ 00050H
  313. PrSwapListEntry equ 00060H
  314. PrThreadListHead equ 00070H
  315. PrProcessLock equ 00080H
  316. PrAffinity equ 00088H
  317. PrStackCount equ 00090H
  318. PrBasePriority equ 00092H
  319. PrThreadQuantum equ 00093H
  320. PrAutoAlignment equ 00094H
  321. PrState equ 00095H
  322. ProcessObjectLength equ 000B0H
  323. ExtendedProcessObjectLength equ 003C0H
  324. ;
  325. ; Profile Object Structure Offset Definitions
  326. ;
  327. PfType equ 00000H
  328. PfSize equ 00002H
  329. PfProfileListEntry equ 00008H
  330. PfProcess equ 00018H
  331. PfRangeBase equ 00020H
  332. PfRangeLimit equ 00028H
  333. PfBucketShift equ 00030H
  334. PfBuffer equ 00038H
  335. PfSegment equ 00040H
  336. PfAffinity equ 00048H
  337. PfSource equ 00050H
  338. PfStarted equ 00052H
  339. ProfileObjectLength equ 00058H
  340. ;
  341. ; Queue Object Structure Offset Definitions
  342. ;
  343. QuType equ 00000H
  344. QuSize equ 00002H
  345. QuSignalState equ 00004H
  346. QuEntryListHead equ 00018H
  347. QuCurrentCount equ 00028H
  348. QuMaximumCount equ 0002CH
  349. QuThreadListHead equ 00030H
  350. QueueObjectLength equ 00040H
  351. ;
  352. ; Thread Object Structure Offset Definitions
  353. ;
  354. EeKernelEventPair equ 00000H
  355. EtCid equ 00378H
  356. EtEthreadLength equ 00430H
  357. ThType equ 00000H
  358. ThSize equ 00002H
  359. ThSignalState equ 00004H
  360. ThMutantListHead equ 00018H
  361. ThInitialStack equ 00028H
  362. ThStackLimit equ 00030H
  363. ThTeb equ 00038H
  364. ThTlsArray equ 00040H
  365. ThKernelStack equ 00048H
  366. ThDebugActive equ 00050H
  367. ThState equ 00051H
  368. ThAlerted equ 00052H
  369. ThIopl equ 00054H
  370. ThNpxState equ 00055H
  371. ThSaturation equ 00056H
  372. ThPriority equ 00057H
  373. ThApcState equ 00058H
  374. ThIdleSwapBlock equ 0008CH
  375. ThContextSwitches equ 00088H
  376. ThWaitStatus equ 00090H
  377. ThWaitIrql equ 00098H
  378. ThWaitMode equ 00099H
  379. ThWaitNext equ 0009AH
  380. ThWaitReason equ 0009BH
  381. ThWaitBlockList equ 000A0H
  382. ThWaitListEntry equ 000A8H
  383. ThWaitTime equ 000B8H
  384. ThBasePriority equ 000BCH
  385. ThDecrementCount equ 000BDH
  386. ThPriorityDecrement equ 000BEH
  387. ThQuantum equ 000BFH
  388. ThWaitBlock equ 000C0H
  389. ThKernelApcDisable equ 00188H
  390. ThUserAffinity equ 00190H
  391. ThSystemAffinityActive equ 00198H
  392. ThServiceTable equ 001A0H
  393. ThQueue equ 001A8H
  394. ThApcQueueLock equ 001B0H
  395. ThTimer equ 001B8H
  396. ThQueueListEntry equ 001F8H
  397. ThAffinity equ 00210H
  398. ThPreempted equ 00218H
  399. ThProcessReadyQueue equ 00219H
  400. ThKernelStackResident equ 0021AH
  401. ThNextProcessor equ 0021BH
  402. ThCallbackStack equ 00220H
  403. ThWin32Thread equ 00228H
  404. ThTrapFrame equ 00230H
  405. ThApcStatePointer equ 00238H
  406. ThPreviousMode equ 00248H
  407. ThEnableStackSwap equ 00249H
  408. ThLargeStack equ 0024AH
  409. ThKernelTime equ 0024CH
  410. ThUserTime equ 00250H
  411. ThSavedApcState equ 00258H
  412. ThAlertable equ 00288H
  413. ThApcStateIndex equ 00289H
  414. ThApcQueueable equ 0028AH
  415. ThAutoAlignment equ 0028BH
  416. ThStackBase equ 00290H
  417. ThSuspendApc equ 00298H
  418. ThSuspendSemaphore equ 002F0H
  419. ThThreadListEntry equ 00310H
  420. ThFreezeCount equ 00320H
  421. ThSuspendCount equ 00321H
  422. ThIdealProcessor equ 00322H
  423. ThDisableBoost equ 00323H
  424. ThSoftAffinity equ 00208H
  425. ThreadObjectLength equ 00330H
  426. ExtendedThreadObjectLength equ 00430H
  427. EVENT_WAIT_BLOCK_OFFSET equ 00120H
  428. ;
  429. ; Timer object Structure Offset Definitions
  430. ;
  431. TiType equ 00000H
  432. TiSize equ 00002H
  433. TiInserted equ 00003H
  434. TiSignalState equ 00004H
  435. TiDueTime equ 00018H
  436. TiTimerListEntry equ 00020H
  437. TiDpc equ 00030H
  438. TiPeriod equ 00038H
  439. TimerObjectLength equ 00040H
  440. TIMER_TABLE_SIZE equ 00100H
  441. ;
  442. ; Wait Block Structure Offset Definitions
  443. ;
  444. WbWaitListEntry equ 00000H
  445. WbThread equ 00010H
  446. WbObject equ 00018H
  447. WbNextWaitBlock equ 00020H
  448. WbWaitKey equ 00028H
  449. WbWaitType equ 0002AH
  450. ;
  451. ; Fiber Structure Offset Definitions
  452. ;
  453. FbFiberData equ 00000H
  454. FbExceptionList equ 00008H
  455. FbStackBase equ 00010H
  456. FbStackLimit equ 00018H
  457. FbDeallocationStack equ 00020H
  458. FbFiberContext equ 00030H
  459. FbWx86Tib equ 002A0H
  460. ;
  461. ; Process Environment Block Structure Offset Definitions
  462. ;
  463. PeKernelCallbackTable equ 00058H
  464. ;
  465. ; System Service Descriptor Table Structure Definitions
  466. ;
  467. NUMBER_SERVICE_TABLES equ 00004H
  468. SERVICE_NUMBER_MASK equ 00FFFH
  469. SERVICE_TABLE_SHIFT equ 00007H
  470. SERVICE_TABLE_MASK equ 00060H
  471. SERVICE_TABLE_TEST equ 00020H
  472. SdBase equ 00000H
  473. SdCount equ 00008H
  474. SdLimit equ 00010H
  475. SdNumber equ 00018H
  476. ;
  477. ; Thread Environment Block Structure Offset Definitions
  478. ;
  479. TeCmTeb equ 00000H
  480. TeStackBase equ 00008H
  481. TeStackLimit equ 00010H
  482. TeFiberData equ 00020H
  483. TeSelf equ 00030H
  484. TeEnvironmentPointer equ 00038H
  485. TeClientId equ 00040H
  486. TeActiveRpcHandle equ 00050H
  487. TeThreadLocalStoragePointer equ 00058H
  488. TeCountOfOwnedCriticalSections equ 0006CH
  489. TePeb equ 00060H
  490. TeCsrClientThread equ 00070H
  491. TeWOW32Reserved equ 00100H
  492. TeSoftFpcr equ 0010CH
  493. TeExceptionCode equ 002C0H
  494. TeGdiClientPID equ 007F0H
  495. TeGdiClientTID equ 007F4H
  496. TeGdiThreadLocalInfo equ 007F8H
  497. TeglDispatchTable equ 009F0H
  498. TeglReserved1 equ 01138H
  499. TeglReserved2 equ 01220H
  500. TeglSectionInfo equ 01228H
  501. TeglSection equ 01230H
  502. TeglTable equ 01238H
  503. TeglCurrentRC equ 01240H
  504. TeglContext equ 01248H
  505. TeDeallocationStack equ 01478H
  506. TeTlsSlots equ 01480H
  507. TeVdm equ 01690H
  508. TeGdiBatchCount equ 01740H
  509. TeInstrumentation equ 016B8H
  510. ThreadEnvironmentBlockLength equ 017B8H
  511. CmThreadEnvironmentBlockOffset equ 02000H
  512. ;
  513. ; Lock Queue Structure Offset Definitions
  514. ;
  515. LOCK_QUEUE_WAIT equ 00001H
  516. LOCK_QUEUE_OWNER equ 00002H
  517. LOCK_QUEUE_HEADER_SIZE equ 00010H
  518. LockQueueDispatcherLock equ 00000H
  519. LockQueueContextSwapLock equ 00001H
  520. LqNext equ 00000H
  521. LqLock equ 00008H
  522. LqhNext equ 00000H
  523. LqhLock equ 00008H
  524. LqhOldIrql equ 00010H
  525. ;
  526. ; Performance Definitions
  527. ;
  528. PERF_CONTEXTSWAP_OFFSET equ 00004H
  529. PERF_CONTEXTSWAP_FLAG equ 00004H
  530. ;
  531. ; Register Argument Home Address Offset Definitions
  532. ;
  533. P1Home equ 00008H
  534. P2Home equ 00010H
  535. P3Home equ 00018H
  536. P4Home equ 00020H
  537. ;
  538. ; Apc Record Structure Offset Definitions
  539. ;
  540. ArNormalRoutine equ 00000H
  541. ArNormalContext equ 00008H
  542. ArSystemArgument1 equ 00010H
  543. ArSystemArgument2 equ 00018H
  544. ApcRecordLength equ 00020H
  545. ;
  546. ; Special Register Structure Offset Definition
  547. ;
  548. SrKernelDr0 equ 00020H
  549. SrKernelDr1 equ 00028H
  550. SrKernelDr2 equ 00030H
  551. SrKernelDr3 equ 00038H
  552. SrKernelDr6 equ 00040H
  553. SrKernelDr7 equ 00048H
  554. SrGdtr equ 00050H
  555. SrIdtr equ 00060H
  556. SrTr equ 00070H
  557. SrMxCsr equ 00074H
  558. ;
  559. ; Processor Control Region Structure Offset Definitions
  560. ;
  561. PcTeb equ 00030H
  562. PcCurrentPrcb equ 00038H
  563. PcSavedRcx equ 00040H
  564. PcSavedR11 equ 00048H
  565. PcIrql equ 00050H
  566. PcNumber equ 00052H
  567. PcIrr equ 00054H
  568. PcIrrActive equ 00058H
  569. PcIdr equ 0005CH
  570. PcStallScaleFactor equ 00064H
  571. PcIdt equ 00068H
  572. PcGdt equ 00070H
  573. PcTss equ 00078H
  574. PcKernel equ 00080H
  575. PcHal equ 000C0H
  576. PcSelf equ 00110H
  577. PcPrcb equ 00180H
  578. PcCurrentThread equ 00188H
  579. PcNextThread equ 00190H
  580. PcIdleThread equ 00198H
  581. PcSetMember equ 001A0H
  582. PcNotSetMember equ 001A8H
  583. PcCr0 equ 001B0H
  584. PcCr2 equ 001B8H
  585. PcCr3 equ 001C0H
  586. PcCr4 equ 001C8H
  587. PcKernelDr0 equ 001D0H
  588. PcKernelDr1 equ 001D8H
  589. PcKernelDr2 equ 001E0H
  590. PcKernelDr3 equ 001E8H
  591. PcKernelDr7 equ 001F8H
  592. PcGdtrLimit equ 00206H
  593. PcGdtrBase equ 00208H
  594. PcIdtrLimit equ 00216H
  595. PcIdtrBase equ 00218H
  596. PcTr equ 00220H
  597. PcLdtr equ 00222H
  598. PcMxCsr equ 00224H
  599. PcCpuType equ 004A0H
  600. PcCpuID equ 004A1H
  601. PcCpuStep equ 004A2H
  602. PcInterruptCount equ 00E80H
  603. PcSystemCalls equ 00F38H
  604. PcDpcRoutineActive equ 00DA8H
  605. PcSkipTick equ 00E9CH
  606. ProcessorControlRegisterLength equ 010E0H
  607. ;
  608. ; Defines for user shared data
  609. ;
  610. USER_SHARED_DATA equ 0FFFFF78000000000H
  611. MM_SHARED_USER_DATA_VA equ 07FFE0000H
  612. UsTickCountLow equ 00000H
  613. UsTickCountMultiplier equ 00004H
  614. UsInterruptTime equ 00008H
  615. UsSystemTime equ 00014H
  616. ;
  617. ; Tss Structure Offset Definitions
  618. ;
  619. TssRsp0 equ 00004H
  620. TssRsp1 equ 0000CH
  621. TssRsp2 equ 00014H
  622. TssIoMapBase equ 00064H
  623. TssIoMapEnd equ 02068H
  624. TssPanicStack equ 00024H
  625. TssMcaStack equ 0002CH
  626. TssLength equ 02070H
  627. ;
  628. ; Gdt Descriptor Offset Definitions
  629. ;
  630. KGDT64_NULL equ 00000H
  631. KGDT64_R0_CODE equ 00010H
  632. KGDT64_R0_DATA equ 00018H
  633. KGDT64_R3_CMCODE equ 00020H
  634. KGDT64_R3_DATA equ 00028H
  635. KGDT64_R3_CODE equ 00030H
  636. KGDT64_SYS_TSS equ 00040H
  637. KGDT64_R3_CMTEB equ 00050H
  638. ;
  639. ; GDT Entry Offset Definitions
  640. ;
  641. KgdtBaseLow equ 00002H
  642. KgdtBaseMiddle equ 00004H
  643. KgdtBaseHigh equ 00007H
  644. KgdtBaseUpper equ 00008H
  645. KgdtLimitHigh equ 00006H
  646. KgdtLimitLow equ 00000H
  647. ;
  648. ; Processor Block Structure Offset Definitions
  649. ;
  650. PbMinorVersion equ 00000H
  651. PbMajorVersion equ 00002H
  652. PbNumber equ 00004H
  653. PbBuildType equ 00006H
  654. PbCurrentThread equ 00008H
  655. PbNextThread equ 00010H
  656. PbIdleThread equ 00018H
  657. PbSetMember equ 00020H
  658. PbNotSetMember equ 00028H
  659. PbProcessorState equ 00030H
  660. PbCpuType equ 00320H
  661. PbCpuID equ 00321H
  662. PbCpuStep equ 00322H
  663. PbKernelReserved equ 00364H
  664. PbHalReserved equ 00364H
  665. PbLockQueue equ 00470H
  666. PbPPLookasideList equ 00580H
  667. PbPPNPagedLookasideList equ 00680H
  668. PbPPPagedLookasideList equ 00880H
  669. PbPacketBarrier equ 00A80H
  670. PbCurrentPacket equ 00B00H
  671. PbTargetSet equ 00B18H
  672. PbWorkerRoutine equ 00B20H
  673. PbIpiFrozen equ 00B28H
  674. PbRequestSummary equ 00B80H
  675. PbDpcListHead equ 00C00H
  676. PbDpcStack equ 00C10H
  677. PbSavedRsp equ 00C18H
  678. PbDpcQueueDepth equ 00C24H
  679. PbDpcRoutineActive equ 00C28H
  680. PbDpcInterruptRequested equ 00C2CH
  681. PbDpcCount equ 00C20H
  682. PbDpcLastCount equ 00C30H
  683. PbDpcRequestRate equ 00C34H
  684. PbMaximumDpcQueueDepth equ 00C38H
  685. PbMinimumDpcRate equ 00C3CH
  686. PbQuantumEnd equ 00C40H
  687. PbDpcLock equ 00C80H
  688. PbInterruptCount equ 00D00H
  689. PbKernelTime equ 00D04H
  690. PbUserTime equ 00D08H
  691. PbDpcTime equ 00D0CH
  692. PbInterruptTime equ 00D10H
  693. PbAdjustDpcThreshold equ 00D14H
  694. PbPageColor equ 00D18H
  695. PbSkipTick equ 00D1CH
  696. PbTimerHand equ 00D20H
  697. PbParentNode equ 00D28H
  698. PbMultiThreadProcessorSet equ 00D30H
  699. PbThreadStartCount equ 00D38H
  700. PbFastReadNoWait equ 00D80H
  701. PbFastReadWait equ 00D84H
  702. PbFastReadNotPossible equ 00D88H
  703. PbCopyReadNoWait equ 00D8CH
  704. PbCopyReadWait equ 00D90H
  705. PbCopyReadNoWaitMiss equ 00D94H
  706. PbAlignmentFixupCount equ 00D98H
  707. PbContextSwitches equ 00D9CH
  708. PbDcacheFlushCount equ 00DA0H
  709. PbExceptionDispatchCount equ 00DA4H
  710. PbFirstLevelTbFills equ 00DA8H
  711. PbFloatingEmulationCount equ 00DACH
  712. PbIcacheFlushCount equ 00DB0H
  713. PbSecondLevelTbFills equ 00DB4H
  714. PbSystemCalls equ 00DB8H
  715. PbLookasideIrpFloat equ 00DC0H
  716. PbVendorString equ 00DC4H
  717. PbPowerState equ 00DE8H
  718. ProcessorBlockLength equ 00F60H
  719. ;
  720. ; Processor Power State Offset Definitions
  721. ;
  722. PpIdleFunction equ 00000H
  723. ;
  724. ; Immediate Interprocessor Command Definitions
  725. ;
  726. IPI_APC equ 00001H
  727. IPI_DPC equ 00002H
  728. IPI_FREEZE equ 00004H
  729. IPI_PACKET_READY equ 00008H
  730. IPI_SYNCH_REQUEST equ 00010H
  731. ;
  732. ; Time Fields (TIME_FIELDS) Structure Offset Definitions
  733. ;
  734. TfSecond equ 0000AH
  735. TfMinute equ 00008H
  736. TfHour equ 00006H
  737. TfWeekday equ 0000EH
  738. TfDay equ 00004H
  739. TfMonth equ 00002H
  740. TfYear equ 00000H
  741. TfMilliseconds equ 0000CH
  742. ;
  743. ; Define constants for system IRQL and IDT vector conversion
  744. ;
  745. MAXIMUM_IDTVECTOR equ 000FFH
  746. MAXIMUM_PRIMARY_VECTOR equ 000FFH
  747. PRIMARY_VECTOR_BASE equ 00030H
  748. RPL_MASK equ 00003H
  749. MODE_BIT equ 00000H
  750. MODE_MASK equ 00001H
  751. ;
  752. ; Flags in the CR0 register
  753. ;
  754. CR0_PG equ 080000000H
  755. CR0_ET equ 00010H
  756. CR0_TS equ 00008H
  757. CR0_EM equ 00004H
  758. CR0_MP equ 00002H
  759. CR0_PE equ 00001H
  760. CR0_CD equ 040000000H
  761. CR0_NW equ 020000000H
  762. CR0_AM equ 040000H
  763. CR0_WP equ 010000H
  764. CR0_NE equ 00020H
  765. ;
  766. ; Flags in the CR4 register
  767. ;
  768. CR4_VME equ 00001H
  769. CR4_PVI equ 00002H
  770. CR4_TSD equ 00004H
  771. CR4_DE equ 00008H
  772. CR4_PSE equ 00010H
  773. CR4_PAE equ 00020H
  774. CR4_MCE equ 00040H
  775. CR4_PGE equ 00080H
  776. CR4_FXSR equ 00200H
  777. CR4_XMMEXCPT equ 00400H
  778. ;
  779. ; Legacy Floating Status Bit Masks
  780. ;
  781. FSW_INVALID_OPERATION equ 00001H
  782. FSW_DENORMAL equ 00002H
  783. FSW_ZERO_DIVIDE equ 00004H
  784. FSW_OVERFLOW equ 00008H
  785. FSW_UNDERFLOW equ 00010H
  786. FSW_PRECISION equ 00020H
  787. FSW_STACK_FAULT equ 00040H
  788. FSW_CONDITION_CODE_0 equ 00100H
  789. FSW_CONDITION_CODE_1 equ 00200H
  790. FSW_CONDITION_CODE_2 equ 00400H
  791. FSW_CONDITION_CODE_3 equ 04000H
  792. FSW_ERROR_MASK equ 0007FH
  793. ;
  794. ; MXCSR Floating Control/Status Bit Masks
  795. ;
  796. XSW_INVALID_OPERATION equ 00001H
  797. XSW_DENORMAL equ 00002H
  798. XSW_ZERO_DIVIDE equ 00004H
  799. XSW_OVERFLOW equ 00008H
  800. XSW_UNDERFLOW equ 00010H
  801. XSW_PRECISION equ 00020H
  802. XSW_ERROR_MASK equ 0003FH
  803. XSW_ERROR_SHIFT equ 00007H
  804. XCW_INVALID_OPERATION equ 00080H
  805. XCW_DENORMAL equ 00100H
  806. XCW_ZERO_DIVIDE equ 00200H
  807. XCW_OVERFLOW equ 00400H
  808. XCW_UNDERFLOW equ 00800H
  809. XCW_PRECISION equ 01000H
  810. XCW_ROUND_CONTROL equ 06000H
  811. XCW_FLUSH_ZERO equ 08000H
  812. INITIAL_MXCSR equ 01F80H
  813. ;
  814. ; Machine Specific Register Numbers
  815. ;
  816. MSR_EFER equ 0C0000080H
  817. MSR_FS_BASE equ 0C0000100H
  818. MSR_GS_BASE equ 0C0000101H
  819. MSR_GS_SWAP equ 0C0000102H
  820. ;
  821. ; Flags within MSR_EFER
  822. ;
  823. MSR_LMA equ 00400H
  824. ;
  825. ; Miscellaneous Definitions
  826. ;
  827. MAXIMUM_PROCESSORS equ 00040H
  828. INITIAL_STALL_COUNT equ 00064H
  829. IRQL_NOT_GREATER_OR_EQUAL equ 00009H
  830. IRQL_NOT_LESS_OR_EQUAL equ 0000AH
  831. MUTEX_ALREADY_OWNED equ 000BFH
  832. THREAD_NOT_MUTEX_OWNER equ 00011H
  833. SPIN_LOCK_ALREADY_OWNED equ 0000FH
  834. SPIN_LOCK_NOT_OWNED equ 00010H
  835. Executive equ 00000H
  836. KernelMode equ 00000H
  837. UserMode equ 00001H
  838. FALSE equ 00000H
  839. TRUE equ 00001H
  840. BASE_PRIORITY_THRESHOLD equ 00008H
  841. EVENT_PAIR_INCREMENT equ 00001H
  842. LOW_REALTIME_PRIORITY equ 00010H
  843. BlackHole equ 0FFFFA000H
  844. KERNEL_LARGE_STACK_COMMIT equ 05000H
  845. KERNEL_STACK_SIZE equ 05000H
  846. DOUBLE_FAULT_STACK_SIZE equ 01000H
  847. BREAKPOINT_BREAK equ 00000H
  848. BREAKPOINT_COMMAND_STRING equ 00005H
  849. BREAKPOINT_PRINT equ 00001H
  850. BREAKPOINT_PROMPT equ 00002H
  851. BREAKPOINT_LOAD_SYMBOLS equ 00003H
  852. BREAKPOINT_UNLOAD_SYMBOLS equ 00004H
  853. IPI_FREEZE equ 00004H
  854. CLOCK_QUANTUM_DECREMENT equ 00003H
  855. READY_SKIP_QUANTUM equ 00002H
  856. THREAD_QUANTUM equ 00006H
  857. WAIT_QUANTUM_DECREMENT equ 00001H
  858. ROUND_TRIP_DECREMENT_COUNT equ 00010H
  859. ;
  860. ; Exception Frame Offset Definitions and Length
  861. ;
  862. ExP1Home equ 00000H
  863. ExP2Home equ 00008H
  864. ExP3Home equ 00010H
  865. ExP4Home equ 00018H
  866. ExP5 equ 00020H
  867. ExXmm6 equ 00030H
  868. ExXmm7 equ 00040H
  869. ExXmm8 equ 00050H
  870. ExXmm9 equ 00060H
  871. ExXmm10 equ 00070H
  872. ExXmm11 equ 00080H
  873. ExXmm12 equ 00090H
  874. ExXmm13 equ 000A0H
  875. ExXmm14 equ 000B0H
  876. ExXmm15 equ 000C0H
  877. ExRbp equ 000F8H
  878. ExRbx equ 00100H
  879. ExRdi equ 00108H
  880. ExRsi equ 00110H
  881. ExR12 equ 00118H
  882. ExR13 equ 00120H
  883. ExR14 equ 00128H
  884. ExR15 equ 00130H
  885. ExReturn equ 00138H
  886. KEXCEPTION_FRAME_LENGTH equ 00140H
  887. ;
  888. ; Jump Offset Definitions and Length
  889. ;
  890. JbFrame equ 00000H
  891. JbRbx equ 00008H
  892. JbRsp equ 00010H
  893. JbRbp equ 00018H
  894. JbRsi equ 00020H
  895. JbRdi equ 00028H
  896. JbR12 equ 00030H
  897. JbR13 equ 00038H
  898. JbR14 equ 00040H
  899. JbR15 equ 00048H
  900. JbRip equ 00050H
  901. JbXmm6 equ 00060H
  902. JbXmm7 equ 00070H
  903. JbXmm8 equ 00080H
  904. JbXmm9 equ 00090H
  905. JbXmm10 equ 000A0H
  906. JbXmm11 equ 000B0H
  907. JbXmm12 equ 000C0H
  908. JbXmm13 equ 000D0H
  909. JbXmm14 equ 000E0H
  910. JbXmm15 equ 000F0H
  911. ;
  912. ; Switch Frame Offset Definitions and Length
  913. ;
  914. SwMxCsr equ 00008H
  915. SwApcBypass equ 0000CH
  916. SwNpxSave equ 0000DH
  917. SwRbp equ 00010H
  918. SwReturn equ 00018H
  919. KSWITCH_FRAME_LENGTH equ 00020H
  920. ;
  921. ; Trap Frame Offset and EFLAG Definitions and Length
  922. ;
  923. EFLAGS_TF_MASK equ 00100H
  924. EFLAGS_TF_SHIFT equ 00008H
  925. EFLAGS_IF_MASK equ 00200H
  926. EFLAGS_IF_SHIFT equ 00009H
  927. EFLAGS_USER_SANITIZE equ 040DD5H
  928. TrP1Home equ 0FFFFFF80H
  929. TrP2Home equ 0FFFFFF88H
  930. TrP3Home equ 0FFFFFF90H
  931. TrP4Home equ 0FFFFFF98H
  932. TrP5 equ 0FFFFFFA0H
  933. TrPreviousMode equ 0FFFFFFA8H
  934. TrPreviousIrql equ 0FFFFFFA9H
  935. TrMxCsr equ 0FFFFFFACH
  936. TrRax equ 0FFFFFFB0H
  937. TrRcx equ 0FFFFFFB8H
  938. TrRdx equ 0FFFFFFC0H
  939. TrR8 equ 0FFFFFFC8H
  940. TrR9 equ 0FFFFFFD0H
  941. TrR10 equ 0FFFFFFD8H
  942. TrR11 equ 0FFFFFFE0H
  943. TrXmm0 equ 0FFFFFFF0H
  944. TrXmm1 equ 00000H
  945. TrXmm2 equ 00010H
  946. TrXmm3 equ 00020H
  947. TrXmm4 equ 00030H
  948. TrXmm5 equ 00040H
  949. TrDr0 equ 00050H
  950. TrDr1 equ 00058H
  951. TrDr2 equ 00060H
  952. TrDr3 equ 00068H
  953. TrDr6 equ 00070H
  954. TrDr7 equ 00078H
  955. TrSegDs equ 00080H
  956. TrSegEs equ 00082H
  957. TrSegFs equ 00084H
  958. TrSegGs equ 00086H
  959. TrTrapFrame equ 00088H
  960. TrExceptionRecord equ 00090H
  961. TrRbx equ 00130H
  962. TrRdi equ 00138H
  963. TrRsi equ 00140H
  964. TrRbp equ 00148H
  965. TrErrorCode equ 00150H
  966. TrRip equ 00158H
  967. TrSegCs equ 00160H
  968. TrEFlags equ 00168H
  969. TrRsp equ 00170H
  970. TrSegSs equ 00178H
  971. KTRAP_FRAME_LENGTH equ 00200H
  972. ;
  973. ; CPU information structure offset definitions
  974. ;
  975. CpuEax equ 00000H
  976. CpuEbx equ 00004H
  977. CpuEcx equ 00008H
  978. CpuEdx equ 0000CH
  979. ;
  980. ; Usermode Callout User Frame Definitions
  981. ;
  982. CkBuffer equ 00020H
  983. CkLength equ 00028H
  984. CkApiNumber equ 0002CH
  985. CkRsp equ 00048H
  986. CkRip equ 00030H
  987. CalloutFrameLength equ 00058H
  988. ;
  989. ; Machine Frame Offset Definitions
  990. ;
  991. MfRip equ 00000H
  992. MfSegCs equ 00008H
  993. MfEFlags equ 00010H
  994. MfRsp equ 00018H
  995. MfSegSs equ 00020H
  996. MachineFrameLength equ 00028H
  997. ;
  998. ; Floating Save Offset Definitions
  999. ;
  1000. FsMxCsr equ 00000H
  1001. ;
  1002. ; LPC Structure Offset Definitions
  1003. ;
  1004. PmLength equ 00000H
  1005. PmZeroInit equ 00004H
  1006. PmClientId equ 00008H
  1007. PmProcess equ 00008H
  1008. PmThread equ 00010H
  1009. PmMessageId equ 00018H
  1010. PmClientViewSize equ 00020H
  1011. PortMessageLength equ 00028H
  1012. ;
  1013. ; Client Id Structure Offset Definitions
  1014. ;
  1015. CidUniqueProcess equ 00000H
  1016. CidUniqueThread equ 00008H
  1017. ;
  1018. ; Context Frame Offset and Flag Definitions
  1019. ;
  1020. CONTEXT_FULL equ 010000BH
  1021. CONTEXT_CONTROL equ 0100001H
  1022. CONTEXT_INTEGER equ 0100002H
  1023. CONTEXT_SEGMENTS equ 0100004H
  1024. CONTEXT_FLOATING_POINT equ 0100008H
  1025. CONTEXT_DEBUG_REGISTERS equ 0100010H
  1026. CxP1Home equ 00000H
  1027. CxP2Home equ 00008H
  1028. CxP3Home equ 00010H
  1029. CxP4Home equ 00018H
  1030. CxP5Home equ 00020H
  1031. CxP6Home equ 00028H
  1032. CxContextFlags equ 00030H
  1033. CxMxCsr equ 00034H
  1034. CxSegCs equ 00038H
  1035. CxSegDs equ 0003AH
  1036. CxSegEs equ 0003CH
  1037. CxSegFs equ 0003EH
  1038. CxSegGs equ 00040H
  1039. CxSegSs equ 00042H
  1040. CxEFlags equ 00044H
  1041. CxDr0 equ 00048H
  1042. CxDr1 equ 00050H
  1043. CxDr2 equ 00058H
  1044. CxDr3 equ 00060H
  1045. CxDr6 equ 00068H
  1046. CxDr7 equ 00070H
  1047. CxRax equ 00078H
  1048. CxRcx equ 00080H
  1049. CxRdx equ 00088H
  1050. CxRbx equ 00090H
  1051. CxRsp equ 00098H
  1052. CxRbp equ 000A0H
  1053. CxRsi equ 000A8H
  1054. CxRdi equ 000B0H
  1055. CxR8 equ 000B8H
  1056. CxR9 equ 000C0H
  1057. CxR10 equ 000C8H
  1058. CxR11 equ 000D0H
  1059. CxR12 equ 000D8H
  1060. CxR13 equ 000E0H
  1061. CxR14 equ 000E8H
  1062. CxR15 equ 000F0H
  1063. CxRip equ 000F8H
  1064. CxXmm0 equ 00100H
  1065. CxXmm1 equ 00110H
  1066. CxXmm2 equ 00120H
  1067. CxXmm3 equ 00130H
  1068. CxXmm4 equ 00140H
  1069. CxXmm5 equ 00150H
  1070. CxXmm6 equ 00160H
  1071. CxXmm7 equ 00170H
  1072. CxXmm8 equ 00180H
  1073. CxXmm9 equ 00190H
  1074. CxXmm10 equ 001A0H
  1075. CxXmm11 equ 001B0H
  1076. CxXmm12 equ 001C0H
  1077. CxXmm13 equ 001D0H
  1078. CxXmm14 equ 001E0H
  1079. CxXmm15 equ 001F0H
  1080. CxFltSave equ 00200H
  1081. CONTEXT_FRAME_LENGTH equ 00270H
  1082. DR7_ACTIVE equ 00055H
  1083. ;
  1084. ; Dispatcher Context Structure Offset Definitions
  1085. ;
  1086. DcControlPc equ 00000H
  1087. DcImageBase equ 00008H
  1088. DcFunctionEntry equ 00010H
  1089. DcEstablisherFrame equ 00018H
  1090. DcTargetIp equ 00020H
  1091. DcContextRecord equ 00028H
  1092. DcLanguageHandler equ 00030H
  1093. DcHandlerData equ 00038H
  1094. DcHistoryTable equ 00040H
  1095. ;
  1096. ; Legacy Floating save area field offset definitions
  1097. ;
  1098. LfControlWord equ 00000H
  1099. LfStatusWord equ 00004H
  1100. LfTagWord equ 00008H
  1101. LfErrorOffset equ 0000CH
  1102. LfErrorOpcode equ 00012H
  1103. LfErrorSelector equ 00010H
  1104. LfDataOffset equ 00014H
  1105. LfDataSelector equ 00018H
  1106. LfFloatRegisters equ 0001CH
  1107. LEGACY_SAVE_AREA_LENGTH equ 00070H
  1108. ;
  1109. ; Processor State Frame Offset Definitions
  1110. ;
  1111. PsSpecialRegisters equ 00000H
  1112. PsCr0 equ 00000H
  1113. PsCr2 equ 00008H
  1114. PsCr3 equ 00010H
  1115. PsCr4 equ 00018H
  1116. PsKernelDr0 equ 00020H
  1117. PsKernelDr1 equ 00028H
  1118. PsKernelDr2 equ 00030H
  1119. PsKernelDr3 equ 00038H
  1120. PsKernelDr6 equ 00040H
  1121. PsKernelDr7 equ 00048H
  1122. PsGdtr equ 00056H
  1123. PsIdtr equ 00066H
  1124. PsTr equ 00070H
  1125. PsLdtr equ 00072H
  1126. PsContextFrame equ 00080H
  1127. ProcessorStateLength equ 002F0H
  1128. ;
  1129. ; Processor Start Block Offset Definitions
  1130. ;
  1131. PsbCompletionFlag equ 00004H
  1132. PsbGdt32 equ 00008H
  1133. PsbIdt32 equ 0000EH
  1134. PsbGdt equ 00018H
  1135. PsbTiledCr3 equ 00058H
  1136. PsbPmTarget equ 00060H
  1137. PsbLmTarget equ 00066H
  1138. PsbSelfMap equ 00070H
  1139. PsbProcessorState equ 00080H
  1140. ProcessorStartBlockLength equ 00370H
  1141. ;
  1142. ; EPROCESS
  1143. ;
  1144. EpDebugPort equ 00138H
  1145. EpVdmObjects equ 00260H
  1146. ;
  1147. ; Machine type definitions (Temporarily)
  1148. ;
  1149. MACHINE_TYPE_ISA equ 00000H
  1150. MACHINE_TYPE_EISA equ 00001H
  1151. MACHINE_TYPE_MCA equ 00002H
  1152. ;
  1153. ; KeFeatureBits defines
  1154. ;
  1155. KF_V86_VIS equ 00001H
  1156. KF_RDTSC equ 00002H
  1157. KF_CR4 equ 00004H
  1158. KF_GLOBAL_PAGE equ 00010H
  1159. KF_LARGE_PAGE equ 00020H
  1160. KF_CMPXCHG8B equ 00080H
  1161. KF_FAST_SYSCALL equ 01000H
  1162. ;
  1163. ; LoaderParameterBlock offsets relative to base
  1164. ;
  1165. LpbLoadOrderListHead equ 00000H
  1166. LpbMemoryDescriptorListHead equ 00010H
  1167. LpbKernelStack equ 00030H
  1168. LpbPrcb equ 00038H
  1169. LpbProcess equ 00040H
  1170. LpbThread equ 00048H
  1171. LpbI386 equ 000B8H
  1172. LpbRegistryLength equ 00050H
  1173. LpbRegistryBase equ 00058H
  1174. LpbConfigurationRoot equ 00060H
  1175. LpbArcBootDeviceName equ 00068H
  1176. LpbArcHalDeviceName equ 00070H
  1177. PAGE_SIZE equ 01000H
  1178. ;
  1179. ; Kernel Mode Callout Frame Definitions
  1180. ;
  1181. CuInitialStack equ 00028H
  1182. CuTrapFrame equ 000D0H
  1183. CuCallbackStack equ 000D8H
  1184. CuOutputBuffer equ 000E0H
  1185. CuOutputLength equ 000E8H