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.

774 lines
14 KiB

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