Leaked source code of windows server 2003
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.

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