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.

854 lines
17 KiB

  1. include kxamd64.inc
  2. ;
  3. ; Wait Reason and Wait Type Enumerated Type Values
  4. ;
  5. WrExecutive equ 00000H
  6. AsProcess equ 00020H
  7. ;
  8. ; Bug Check Code Definitions
  9. ;
  10. APC_INDEX_MISMATCH equ 00001H
  11. ATTEMPTED_SWITCH_FROM_DPC equ 000B8H
  12. DATA_BUS_ERROR equ 0002EH
  13. DATA_COHERENCY_EXCEPTION equ 00055H
  14. HAL1_INITIALIZATION_FAILED equ 00061H
  15. INSTRUCTION_BUS_ERROR equ 0002FH
  16. INSTRUCTION_COHERENCY_EXCEPTION equ 00056H
  17. INTERRUPT_EXCEPTION_NOT_HANDLED equ 0003DH
  18. INTERRUPT_UNWIND_ATTEMPTED equ 0003CH
  19. INVALID_AFFINITY_SET equ 00003H
  20. INVALID_DATA_ACCESS_TRAP equ 00004H
  21. IRQL_GT_ZERO_AT_SYSTEM_SERVICE equ 0004AH
  22. IRQL_NOT_LESS_OR_EQUAL equ 0000AH
  23. KMODE_EXCEPTION_NOT_HANDLED equ 0001EH
  24. NMI_HARDWARE_FAILURE equ 00080H
  25. NO_USER_MODE_CONTEXT equ 0000EH
  26. PAGE_FAULT_WITH_INTERRUPTS_OFF equ 00049H
  27. PANIC_STACK_SWITCH equ 0002BH
  28. SPIN_LOCK_INIT_FAILURE equ 00081H
  29. SYSTEM_EXIT_OWNED_MUTEX equ 00039H
  30. SYSTEM_SERVICE_EXCEPTION equ 0003BH
  31. SYSTEM_UNWIND_PREVIOUS_USER equ 0003AH
  32. TRAP_CAUSE_UNKNOWN equ 00012H
  33. UNEXPECTED_KERNEL_MODE_TRAP equ 0007FH
  34. HARDWARE_INTERRUPT_STORM equ 000F2H
  35. RECURSIVE_MACHINE_CHECK equ 000FBH
  36. ;
  37. ; Breakpoint type definitions
  38. ;
  39. DBG_STATUS_CONTROL_C equ 00001H
  40. ;
  41. ; Exception Record Offset, Flag, and Enumerated Type Definitions
  42. ;
  43. EXCEPTION_NONCONTINUABLE equ 00001H
  44. EXCEPTION_UNWINDING equ 00002H
  45. EXCEPTION_EXIT_UNWIND equ 00004H
  46. EXCEPTION_STACK_INVALID equ 00008H
  47. EXCEPTION_NESTED_CALL equ 00010H
  48. EXCEPTION_TARGET_UNWIND equ 00020H
  49. EXCEPTION_COLLIDED_UNWIND equ 00040H
  50. EXCEPTION_UNWIND equ 00066H
  51. EXCEPTION_EXECUTE_HANDLER equ 00001H
  52. EXCEPTION_CONTINUE_SEARCH equ 00000H
  53. EXCEPTION_CONTINUE_EXECUTION equ 0FFFFFFFFH
  54. ExceptionContinueExecution equ 00000H
  55. ExceptionContinueSearch equ 00001H
  56. ExceptionNestedException equ 00002H
  57. ExceptionCollidedUnwind equ 00003H
  58. ErExceptionCode equ 00000H
  59. ErExceptionFlags equ 00004H
  60. ErExceptionRecord equ 00008H
  61. ErExceptionAddress equ 00010H
  62. ErNumberParameters equ 00018H
  63. ErExceptionInformation equ 00020H
  64. ExceptionRecordLength equ 000A0H
  65. ;
  66. ; Fast Mutex Structure Offset Definitions
  67. ;
  68. FmCount equ 00000H
  69. FmOwner equ 00008H
  70. FmContention equ 00010H
  71. FmEvent equ 00018H
  72. FmOldIrql equ 00030H
  73. ;
  74. ; Interrupt Priority Request Level Definitions
  75. ;
  76. PASSIVE_LEVEL equ 00000H
  77. APC_LEVEL equ 00001H
  78. DISPATCH_LEVEL equ 00002H
  79. CLOCK_LEVEL equ 0000DH
  80. IPI_LEVEL equ 0000EH
  81. POWER_LEVEL equ 0000EH
  82. PROFILE_LEVEL equ 0000FH
  83. HIGH_LEVEL equ 0000FH
  84. ifdef NT_UP
  85. SYNCH_LEVEL equ 00002H
  86. else
  87. SYNCH_LEVEL equ 0000CH
  88. endif
  89. ;
  90. ; Large Integer Structure Offset Definitions
  91. ;
  92. LiLowPart equ 00000H
  93. LiHighPart equ 00004H
  94. ;
  95. ; List Entry Structure Offset Definitions
  96. ;
  97. LsFlink equ 00000H
  98. LsBlink equ 00008H
  99. ;
  100. ; String Structure Offset Definitions
  101. ;
  102. StrLength equ 00000H
  103. StrMaximumLength equ 00002H
  104. StrBuffer equ 00008H
  105. ;
  106. ; Tick Count Offset Definitions
  107. ;
  108. UsTickCount equ 00320H
  109. ;
  110. ; Time Structure Offset Definitions
  111. ;
  112. TmLowTime equ 00000H
  113. TmHighTime equ 00004H
  114. ;
  115. ; DPC object Structure Offset Definitions
  116. ;
  117. DpType equ 00000H
  118. DpNumber equ 00002H
  119. DpImportance equ 00003H
  120. DpDpcListEntry equ 00008H
  121. DpDeferredRoutine equ 00018H
  122. DpDeferredContext equ 00020H
  123. DpSystemArgument1 equ 00028H
  124. DpSystemArgument2 equ 00030H
  125. DpDpcData equ 00038H
  126. DpcObjectLength equ 00040H
  127. ;
  128. ; Interrupt Object Structure Offset Definitions
  129. ;
  130. InLevelSensitive equ 00000H
  131. InLatched equ 00001H
  132. InType equ 00000H
  133. InSize equ 00002H
  134. InInterruptListEntry equ 00008H
  135. InServiceRoutine equ 00018H
  136. InServiceContext equ 00020H
  137. InSpinLock equ 00028H
  138. InTickCount equ 00030H
  139. InActualLock equ 00038H
  140. InDispatchAddress equ 00040H
  141. InVector equ 00048H
  142. InIrql equ 0004CH
  143. InSynchronizeIrql equ 0004DH
  144. InFloatingSave equ 0004EH
  145. InConnected equ 0004FH
  146. InNumber equ 00050H
  147. InShareVector equ 00051H
  148. InMode equ 00054H
  149. InServiceCount equ 00058H
  150. InDispatchCount equ 0005CH
  151. InTrapFrame equ 00060H
  152. InDispatchCode equ 00068H
  153. InterruptObjectLength equ 00210H
  154. PrDirectoryTableBase equ 00028H
  155. ThDebugActive equ 00003H
  156. ThStackLimit equ 00030H
  157. ThApcState equ 00058H
  158. ;
  159. ; Special Register Structure Offset Definition
  160. ;
  161. SrKernelDr0 equ 00020H
  162. SrKernelDr1 equ 00028H
  163. SrKernelDr2 equ 00030H
  164. SrKernelDr3 equ 00038H
  165. SrKernelDr6 equ 00040H
  166. SrKernelDr7 equ 00048H
  167. SrGdtr equ 00050H
  168. SrIdtr equ 00060H
  169. SrTr equ 00070H
  170. SrMxCsr equ 00074H
  171. SrMsrGsBase equ 000A8H
  172. SrMsrGsSwap equ 000B0H
  173. SrMsrStar equ 000B8H
  174. SrMsrLStar equ 000C0H
  175. SrMsrCStar equ 000C8H
  176. SrMsrSyscallMask equ 000D0H
  177. ;
  178. ; Processor Control Region Structure Offset Definitions
  179. ;
  180. PcGdt equ 00000H
  181. PcTss equ 00008H
  182. PcPerfGlobalGroupMask equ 00010H
  183. PcSelf equ 00018H
  184. PcContextSwitches equ 00020H
  185. PcSetMember equ 00028H
  186. PcTeb equ 00030H
  187. PcCurrentPrcb equ 00038H
  188. PcSavedRcx equ 00040H
  189. PcSavedR11 equ 00048H
  190. PcIrql equ 00050H
  191. PcNumber equ 00052H
  192. PcIrr equ 00054H
  193. PcIrrActive equ 00058H
  194. PcIdr equ 0005CH
  195. PcStallScaleFactor equ 00064H
  196. PcIdt equ 00068H
  197. PcHalReserved equ 000C0H
  198. PcMxCsr equ 00100H
  199. PcPrcb equ 00180H
  200. PcCurrentThread equ 00188H
  201. PcNextThread equ 00190H
  202. PcIdleThread equ 00198H
  203. PcNotSetMember equ 001A8H
  204. PcCr0 equ 001C0H
  205. PcCr2 equ 001C8H
  206. PcCr3 equ 001D0H
  207. PcCr4 equ 001D8H
  208. PcKernelDr0 equ 001E0H
  209. PcKernelDr1 equ 001E8H
  210. PcKernelDr2 equ 001F0H
  211. PcKernelDr3 equ 001F8H
  212. PcKernelDr7 equ 00208H
  213. PcGdtrLimit equ 00216H
  214. PcGdtrBase equ 00218H
  215. PcIdtrLimit equ 00226H
  216. PcIdtrBase equ 00228H
  217. PcTr equ 00230H
  218. PcLdtr equ 00232H
  219. PcDebugControl equ 00238H
  220. PcLastBranchToRip equ 00240H
  221. PcLastBranchFromRip equ 00248H
  222. PcLastExceptionToRip equ 00250H
  223. PcLastExceptionFromRip equ 00258H
  224. PcCr8 equ 00260H
  225. PcCpuType equ 00540H
  226. PcCpuID equ 00541H
  227. PcCpuStep equ 00542H
  228. PcInterruptCount equ 01098H
  229. PcSystemCalls equ 01138H
  230. PcDpcRoutineActive equ 00DDEH
  231. PcDeferredReadyListHead equ 00E60H
  232. PcSkipTick equ 010B4H
  233. ;
  234. ; Defines for user shared data
  235. ;
  236. USER_SHARED_DATA equ 0FFFFF78000000000H
  237. MM_SHARED_USER_DATA_VA equ 07FFE0000H
  238. UsTickCountMultiplier equ 00004H
  239. UsInterruptTime equ 00008H
  240. UsSystemTime equ 00014H
  241. ;
  242. ; Tss Structure Offset Definitions
  243. ;
  244. TssRsp0 equ 00004H
  245. TssRsp1 equ 0000CH
  246. TssRsp2 equ 00014H
  247. TssPanicStack equ 00024H
  248. TssMcaStack equ 0002CH
  249. TssLength equ 00068H
  250. ;
  251. ; Gdt Descriptor Offset Definitions
  252. ;
  253. KGDT64_NULL equ 00000H
  254. KGDT64_R0_CODE equ 00010H
  255. KGDT64_R0_DATA equ 00018H
  256. KGDT64_R3_CMCODE equ 00020H
  257. KGDT64_R3_DATA equ 00028H
  258. KGDT64_R3_CODE equ 00030H
  259. KGDT64_SYS_TSS equ 00040H
  260. KGDT64_R3_CMTEB equ 00050H
  261. ;
  262. ; GDT Entry Offset Definitions
  263. ;
  264. KgdtBaseLow equ 00002H
  265. KgdtBaseMiddle equ 00004H
  266. KgdtBaseHigh equ 00007H
  267. KgdtBaseUpper equ 00008H
  268. KgdtLimitHigh equ 00006H
  269. KgdtLimitLow equ 00000H
  270. ;
  271. ; Processor Block Structure Offset Definitions
  272. ;
  273. PbMinorVersion equ 00000H
  274. PbMajorVersion equ 00002H
  275. PbNumber equ 00004H
  276. PbBuildType equ 00006H
  277. PbCurrentThread equ 00008H
  278. PbNextThread equ 00010H
  279. PbIdleThread equ 00018H
  280. PbSetMember equ 00020H
  281. PbNotSetMember equ 00028H
  282. PbPrcbLock equ 00030H
  283. PbProcessorState equ 00040H
  284. PbCpuType equ 003C0H
  285. PbCpuID equ 003C1H
  286. PbCpuStep equ 003C2H
  287. PbHalReserved equ 003C8H
  288. ;
  289. ; Time Fields (TIME_FIELDS) Structure Offset Definitions
  290. ;
  291. TfSecond equ 0000AH
  292. TfMinute equ 00008H
  293. TfHour equ 00006H
  294. TfWeekday equ 0000EH
  295. TfDay equ 00004H
  296. TfMonth equ 00002H
  297. TfYear equ 00000H
  298. TfMilliseconds equ 0000CH
  299. ;
  300. ; Define constants for system IRQL and IDT vector conversion
  301. ;
  302. MAXIMUM_IDTVECTOR equ 000FFH
  303. MAXIMUM_PRIMARY_VECTOR equ 000FFH
  304. PRIMARY_VECTOR_BASE equ 00030H
  305. RPL_MASK equ 00003H
  306. MODE_BIT equ 00000H
  307. MODE_MASK equ 00001H
  308. ;
  309. ; Flags in the CR0 register
  310. ;
  311. CR0_PG equ 080000000H
  312. CR0_ET equ 00010H
  313. CR0_TS equ 00008H
  314. CR0_EM equ 00004H
  315. CR0_MP equ 00002H
  316. CR0_PE equ 00001H
  317. CR0_CD equ 040000000H
  318. CR0_NW equ 020000000H
  319. CR0_AM equ 040000H
  320. CR0_WP equ 010000H
  321. CR0_NE equ 00020H
  322. ;
  323. ; Flags in the CR4 register
  324. ;
  325. CR4_VME equ 00001H
  326. CR4_PVI equ 00002H
  327. CR4_TSD equ 00004H
  328. CR4_DE equ 00008H
  329. CR4_PSE equ 00010H
  330. CR4_PAE equ 00020H
  331. CR4_MCE equ 00040H
  332. CR4_PGE equ 00080H
  333. CR4_FXSR equ 00200H
  334. CR4_XMMEXCPT equ 00400H
  335. ;
  336. ; Legacy Floating Status Bit Masks
  337. ;
  338. FSW_INVALID_OPERATION equ 00001H
  339. FSW_DENORMAL equ 00002H
  340. FSW_ZERO_DIVIDE equ 00004H
  341. FSW_OVERFLOW equ 00008H
  342. FSW_UNDERFLOW equ 00010H
  343. FSW_PRECISION equ 00020H
  344. FSW_STACK_FAULT equ 00040H
  345. FSW_CONDITION_CODE_0 equ 00100H
  346. FSW_CONDITION_CODE_1 equ 00200H
  347. FSW_CONDITION_CODE_2 equ 00400H
  348. FSW_CONDITION_CODE_3 equ 04000H
  349. FSW_ERROR_MASK equ 0003FH
  350. ;
  351. ; Legacy Floating States
  352. ;
  353. LEGACY_STATE_UNUSED equ 00000H
  354. LEGACY_STATE_SCRUB equ 00001H
  355. LEGACY_STATE_SWITCH equ 00002H
  356. ;
  357. ; MXCSR Floating Control/Status Bit Masks
  358. ;
  359. XSW_INVALID_OPERATION equ 00001H
  360. XSW_DENORMAL equ 00002H
  361. XSW_ZERO_DIVIDE equ 00004H
  362. XSW_OVERFLOW equ 00008H
  363. XSW_UNDERFLOW equ 00010H
  364. XSW_PRECISION equ 00020H
  365. XSW_ERROR_MASK equ 0003FH
  366. XSW_ERROR_SHIFT equ 00007H
  367. XCW_INVALID_OPERATION equ 00080H
  368. XCW_DENORMAL equ 00100H
  369. XCW_ZERO_DIVIDE equ 00200H
  370. XCW_OVERFLOW equ 00400H
  371. XCW_UNDERFLOW equ 00800H
  372. XCW_PRECISION equ 01000H
  373. XCW_ROUND_CONTROL equ 06000H
  374. XCW_FLUSH_ZERO equ 08000H
  375. INITIAL_MXCSR equ 01F80H
  376. ;
  377. ; Machine Specific Register Numbers
  378. ;
  379. MSR_EFER equ 0C0000080H
  380. MSR_STAR equ 0C0000081H
  381. MSR_LSTAR equ 0C0000082H
  382. MSR_CSTAR equ 0C0000083H
  383. MSR_SYSCALL_MASK equ 0C0000084H
  384. MSR_FS_BASE equ 0C0000100H
  385. MSR_GS_BASE equ 0C0000101H
  386. MSR_GS_SWAP equ 0C0000102H
  387. MSR_MCG_STATUS equ 0017AH
  388. ;
  389. ; Flags within MSR_EFER
  390. ;
  391. MSR_LMA equ 00400H
  392. MSR_LME equ 00100H
  393. MSR_SCE equ 00001H
  394. MSR_NXE equ 00800H
  395. MSR_PAT equ 00277H
  396. ;
  397. ; Miscellaneous Definitions
  398. ;
  399. MAXIMUM_PROCESSORS equ 00040H
  400. INITIAL_STALL_COUNT equ 00064H
  401. IRQL_NOT_GREATER_OR_EQUAL equ 00009H
  402. IRQL_NOT_LESS_OR_EQUAL equ 0000AH
  403. MUTEX_ALREADY_OWNED equ 000BFH
  404. THREAD_NOT_MUTEX_OWNER equ 00011H
  405. SPIN_LOCK_ALREADY_OWNED equ 0000FH
  406. SPIN_LOCK_NOT_OWNED equ 00010H
  407. Executive equ 00000H
  408. KernelMode equ 00000H
  409. UserMode equ 00001H
  410. FALSE equ 00000H
  411. TRUE equ 00001H
  412. KERNEL_MCA_EXCEPTION_STACK_SIZE equ 02000H
  413. ;
  414. ; Exception Frame Offset Definitions and Length
  415. ;
  416. ExP1Home equ 00000H
  417. ExP2Home equ 00008H
  418. ExP3Home equ 00010H
  419. ExP4Home equ 00018H
  420. ExP5 equ 00020H
  421. ExXmm6 equ 00030H
  422. ExXmm7 equ 00040H
  423. ExXmm8 equ 00050H
  424. ExXmm9 equ 00060H
  425. ExXmm10 equ 00070H
  426. ExXmm11 equ 00080H
  427. ExXmm12 equ 00090H
  428. ExXmm13 equ 000A0H
  429. ExXmm14 equ 000B0H
  430. ExXmm15 equ 000C0H
  431. ExExceptionRecord equ 000F0H
  432. ExRbp equ 00138H
  433. ExRbx equ 00140H
  434. ExRdi equ 00148H
  435. ExRsi equ 00150H
  436. ExR12 equ 00158H
  437. ExR13 equ 00160H
  438. ExR14 equ 00168H
  439. ExR15 equ 00170H
  440. ExReturn equ 00178H
  441. KEXCEPTION_FRAME_LENGTH equ 00180H
  442. EXCEPTION_RECORD_LENGTH equ 000A0H
  443. ;
  444. ; Jump Offset Definitions and Length
  445. ;
  446. JbFrame equ 00000H
  447. JbRbx equ 00008H
  448. JbRsp equ 00010H
  449. JbRbp equ 00018H
  450. JbRsi equ 00020H
  451. JbRdi equ 00028H
  452. JbR12 equ 00030H
  453. JbR13 equ 00038H
  454. JbR14 equ 00040H
  455. JbR15 equ 00048H
  456. JbRip equ 00050H
  457. JbXmm6 equ 00060H
  458. JbXmm7 equ 00070H
  459. JbXmm8 equ 00080H
  460. JbXmm9 equ 00090H
  461. JbXmm10 equ 000A0H
  462. JbXmm11 equ 000B0H
  463. JbXmm12 equ 000C0H
  464. JbXmm13 equ 000D0H
  465. JbXmm14 equ 000E0H
  466. JbXmm15 equ 000F0H
  467. ;
  468. ; Switch Frame Offset Definitions and Length
  469. ;
  470. SwP5Home equ 00020H
  471. SwMxCsr equ 00028H
  472. SwApcBypass equ 0002CH
  473. SwRbp equ 00030H
  474. SwReturn equ 00038H
  475. KSWITCH_FRAME_LENGTH equ 00040H
  476. ;
  477. ; Start System Thread Frame Offset Definitions and Length
  478. ;
  479. SfP1Home equ 00000H
  480. SfP2Home equ 00008H
  481. SfP3Home equ 00010H
  482. SfReturn equ 00018H
  483. KSTART_FRAME_LENGTH equ 00020H
  484. ;
  485. ; Trap Frame Offset and EFLAG Definitions and Length
  486. ;
  487. EFLAGS_TF_MASK equ 00100H
  488. EFLAGS_TF_SHIFT equ 00008H
  489. EFLAGS_IF_MASK equ 00200H
  490. EFLAGS_IF_SHIFT equ 00009H
  491. EFLAGS_USER_SANITIZE equ 010DD5H
  492. TrP1Home equ 0FFFFFF80H
  493. TrP2Home equ 0FFFFFF88H
  494. TrP3Home equ 0FFFFFF90H
  495. TrP4Home equ 0FFFFFF98H
  496. TrP5 equ 0FFFFFFA0H
  497. TrPreviousMode equ 0FFFFFFA8H
  498. TrPreviousIrql equ 0FFFFFFA9H
  499. TrFaultIndicator equ 0FFFFFFAAH
  500. TrMxCsr equ 0FFFFFFACH
  501. TrRax equ 0FFFFFFB0H
  502. TrRcx equ 0FFFFFFB8H
  503. TrRdx equ 0FFFFFFC0H
  504. TrR8 equ 0FFFFFFC8H
  505. TrR9 equ 0FFFFFFD0H
  506. TrR10 equ 0FFFFFFD8H
  507. TrR11 equ 0FFFFFFE0H
  508. TrXmm0 equ 0FFFFFFF0H
  509. TrXmm1 equ 00000H
  510. TrXmm2 equ 00010H
  511. TrXmm3 equ 00020H
  512. TrXmm4 equ 00030H
  513. TrXmm5 equ 00040H
  514. TrFaultAddress equ 00050H
  515. TrDr0 equ 00058H
  516. TrDr1 equ 00060H
  517. TrDr2 equ 00068H
  518. TrDr3 equ 00070H
  519. TrDr6 equ 00078H
  520. TrDr7 equ 00080H
  521. TrDebugControl equ 00088H
  522. TrLastBranchToRip equ 00090H
  523. TrLastBranchFromRip equ 00098H
  524. TrLastExceptionToRip equ 000A0H
  525. TrLastExceptionFromRip equ 000A8H
  526. TrSegDs equ 000B0H
  527. TrSegEs equ 000B2H
  528. TrSegFs equ 000B4H
  529. TrSegGs equ 000B6H
  530. TrTrapFrame equ 000B8H
  531. TrRbx equ 000C0H
  532. TrRdi equ 000C8H
  533. TrRsi equ 000D0H
  534. TrRbp equ 000D8H
  535. TrErrorCode equ 000E0H
  536. TrRip equ 000E8H
  537. TrSegCs equ 000F0H
  538. TrEFlags equ 000F8H
  539. TrRsp equ 00100H
  540. TrSegSs equ 00108H
  541. KTRAP_FRAME_LENGTH equ 00190H
  542. ;
  543. ; CPU information structure offset definitions
  544. ;
  545. CpuEax equ 00000H
  546. CpuEbx equ 00004H
  547. CpuEcx equ 00008H
  548. CpuEdx equ 0000CH
  549. ;
  550. ; Usermode Callout User Frame Definitions
  551. ;
  552. CkBuffer equ 00020H
  553. CkLength equ 00028H
  554. CkApiNumber equ 0002CH
  555. CkRsp equ 00048H
  556. CkRip equ 00030H
  557. CalloutFrameLength equ 00058H
  558. ;
  559. ; Machine Frame Offset Definitions
  560. ;
  561. MfRip equ 00000H
  562. MfSegCs equ 00008H
  563. MfEFlags equ 00010H
  564. MfRsp equ 00018H
  565. MfSegSs equ 00020H
  566. MachineFrameLength equ 00028H
  567. ;
  568. ; Floating Save Offset Definitions
  569. ;
  570. FsMxCsr equ 00000H
  571. ;
  572. ; LPC Structure Offset Definitions
  573. ;
  574. PmLength equ 00000H
  575. PmZeroInit equ 00004H
  576. PmClientId equ 00008H
  577. PmProcess equ 00008H
  578. PmThread equ 00010H
  579. PmMessageId equ 00018H
  580. PmClientViewSize equ 00020H
  581. PortMessageLength equ 00028H
  582. ;
  583. ; Client Id Structure Offset Definitions
  584. ;
  585. CidUniqueProcess equ 00000H
  586. CidUniqueThread equ 00008H
  587. ;
  588. ; Context Frame Offset and Flag Definitions
  589. ;
  590. CONTEXT_FULL equ 010000BH
  591. CONTEXT_CONTROL equ 0100001H
  592. CONTEXT_INTEGER equ 0100002H
  593. CONTEXT_SEGMENTS equ 0100004H
  594. CONTEXT_FLOATING_POINT equ 0100008H
  595. CONTEXT_DEBUG_REGISTERS equ 0100010H
  596. CxP1Home equ 00000H
  597. CxP2Home equ 00008H
  598. CxP3Home equ 00010H
  599. CxP4Home equ 00018H
  600. CxP5Home equ 00020H
  601. CxP6Home equ 00028H
  602. CxContextFlags equ 00030H
  603. CxMxCsr equ 00034H
  604. CxSegCs equ 00038H
  605. CxSegDs equ 0003AH
  606. CxSegEs equ 0003CH
  607. CxSegFs equ 0003EH
  608. CxSegGs equ 00040H
  609. CxSegSs equ 00042H
  610. CxEFlags equ 00044H
  611. CxDr0 equ 00048H
  612. CxDr1 equ 00050H
  613. CxDr2 equ 00058H
  614. CxDr3 equ 00060H
  615. CxDr6 equ 00068H
  616. CxDr7 equ 00070H
  617. CxRax equ 00078H
  618. CxRcx equ 00080H
  619. CxRdx equ 00088H
  620. CxRbx equ 00090H
  621. CxRsp equ 00098H
  622. CxRbp equ 000A0H
  623. CxRsi equ 000A8H
  624. CxRdi equ 000B0H
  625. CxR8 equ 000B8H
  626. CxR9 equ 000C0H
  627. CxR10 equ 000C8H
  628. CxR11 equ 000D0H
  629. CxR12 equ 000D8H
  630. CxR13 equ 000E0H
  631. CxR14 equ 000E8H
  632. CxR15 equ 000F0H
  633. CxRip equ 000F8H
  634. CxXmm0 equ 00100H
  635. CxXmm1 equ 00110H
  636. CxXmm2 equ 00120H
  637. CxXmm3 equ 00130H
  638. CxXmm4 equ 00140H
  639. CxXmm5 equ 00150H
  640. CxXmm6 equ 00160H
  641. CxXmm7 equ 00170H
  642. CxXmm8 equ 00180H
  643. CxXmm9 equ 00190H
  644. CxXmm10 equ 001A0H
  645. CxXmm11 equ 001B0H
  646. CxXmm12 equ 001C0H
  647. CxXmm13 equ 001D0H
  648. CxXmm14 equ 001E0H
  649. CxXmm15 equ 001F0H
  650. CxFltSave equ 00200H
  651. CxDebugControl equ 00270H
  652. CxLastBranchToRip equ 00278H
  653. CxLastBranchFromRip equ 00280H
  654. CxLastExceptionToRip equ 00288H
  655. CxLastExceptionFromRip equ 00290H
  656. CONTEXT_FRAME_LENGTH equ 002A0H
  657. DR7_ACTIVE equ 00055H
  658. ;
  659. ; Dispatcher Context Structure Offset Definitions
  660. ;
  661. DcControlPc equ 00000H
  662. DcImageBase equ 00008H
  663. DcFunctionEntry equ 00010H
  664. DcEstablisherFrame equ 00018H
  665. DcTargetIp equ 00020H
  666. DcContextRecord equ 00028H
  667. DcLanguageHandler equ 00030H
  668. DcHandlerData equ 00038H
  669. DcHistoryTable equ 00040H
  670. ;
  671. ; Legacy Floating save area field offset definitions
  672. ;
  673. LfControlWord equ 00000H
  674. LfStatusWord equ 00004H
  675. LfTagWord equ 00008H
  676. LfErrorOffset equ 0000CH
  677. LfErrorOpcode equ 00012H
  678. LfErrorSelector equ 00010H
  679. LfDataOffset equ 00014H
  680. LfDataSelector equ 00018H
  681. LfFloatRegisters equ 0001CH
  682. LEGACY_SAVE_AREA_LENGTH equ 00070H
  683. ;
  684. ; Processor State Frame Offset Definitions
  685. ;
  686. PsSpecialRegisters equ 00000H
  687. PsCr0 equ 00000H
  688. PsCr2 equ 00008H
  689. PsCr3 equ 00010H
  690. PsCr4 equ 00018H
  691. PsKernelDr0 equ 00020H
  692. PsKernelDr1 equ 00028H
  693. PsKernelDr2 equ 00030H
  694. PsKernelDr3 equ 00038H
  695. PsKernelDr6 equ 00040H
  696. PsKernelDr7 equ 00048H
  697. PsGdtr equ 00056H
  698. PsIdtr equ 00066H
  699. PsTr equ 00070H
  700. PsLdtr equ 00072H
  701. PsMxCsr equ 00074H
  702. PsContextFrame equ 000E0H
  703. PsDebugControl equ 00078H
  704. PsLastBranchToRip equ 00080H
  705. PsLastBranchFromRip equ 00088H
  706. PsLastExceptionToRip equ 00090H
  707. PsLastExceptionFromRip equ 00098H
  708. PsCr8 equ 000A0H
  709. ProcessorStateLength equ 00380H
  710. ;
  711. ; Processor Start Block Offset Definitions
  712. ;
  713. PsbCompletionFlag equ 00004H
  714. PsbGdt32 equ 00008H
  715. PsbIdt32 equ 0000EH
  716. PsbGdt equ 00018H
  717. PsbTiledCr3 equ 00058H
  718. PsbPmTarget equ 00060H
  719. PsbLmTarget equ 00070H
  720. PsbLmIdentityTarget equ 00066H
  721. PsbSelfMap equ 00078H
  722. PsbMsrPat equ 00080H
  723. PsbProcessorState equ 00090H
  724. ProcessorStartBlockLength equ 00410H
  725. ;
  726. ; Machine type definitions (Temporarily)
  727. ;
  728. MACHINE_TYPE_ISA equ 00000H
  729. MACHINE_TYPE_EISA equ 00001H
  730. MACHINE_TYPE_MCA equ 00002H
  731. ;
  732. ; LoaderParameterBlock offsets relative to base
  733. ;
  734. LpbLoadOrderListHead equ 00000H
  735. LpbMemoryDescriptorListHead equ 00010H
  736. LpbKernelStack equ 00030H
  737. LpbPrcb equ 00038H
  738. LpbProcess equ 00040H
  739. LpbThread equ 00048H
  740. LpbI386 equ 000B8H
  741. LpbRegistryLength equ 00050H
  742. LpbRegistryBase equ 00058H
  743. LpbConfigurationRoot equ 00060H
  744. LpbArcBootDeviceName equ 00068H
  745. LpbArcHalDeviceName equ 00070H
  746. LpbLoadOptions equ 00088H