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.

749 lines
17 KiB

  1. #include "kxalpha.h"
  2. //
  3. // Wait Reason and Wait Type Enumerated Type Values
  4. //
  5. #define WrExecutive 0x0
  6. //
  7. // Bug Check Code Definitions
  8. //
  9. #define APC_INDEX_MISMATCH 0x1
  10. #define ATTEMPTED_SWITCH_FROM_DPC 0xb8
  11. #define DATA_BUS_ERROR 0x2e
  12. #define DATA_COHERENCY_EXCEPTION 0x55
  13. #define HAL1_INITIALIZATION_FAILED 0x61
  14. #define INSTRUCTION_BUS_ERROR 0x2f
  15. #define INSTRUCTION_COHERENCY_EXCEPTION 0x56
  16. #define INTERRUPT_EXCEPTION_NOT_HANDLED 0x3d
  17. #define INTERRUPT_UNWIND_ATTEMPTED 0x3c
  18. #define INVALID_AFFINITY_SET 0x3
  19. #define INVALID_DATA_ACCESS_TRAP 0x4
  20. #define IRQL_GT_ZERO_AT_SYSTEM_SERVICE 0x4a
  21. #define IRQL_NOT_LESS_OR_EQUAL 0xa
  22. #define KMODE_EXCEPTION_NOT_HANDLED 0x1e
  23. #define NMI_HARDWARE_FAILURE 0x80
  24. #define NO_USER_MODE_CONTEXT 0xe
  25. #define PAGE_FAULT_WITH_INTERRUPTS_OFF 0x49
  26. #define PANIC_STACK_SWITCH 0x2b
  27. #define SPIN_LOCK_INIT_FAILURE 0x81
  28. #define SYSTEM_EXIT_OWNED_MUTEX 0x39
  29. #define SYSTEM_SERVICE_EXCEPTION 0x3b
  30. #define SYSTEM_UNWIND_PREVIOUS_USER 0x3a
  31. #define TRAP_CAUSE_UNKNOWN 0x12
  32. #define UNEXPECTED_KERNEL_MODE_TRAP 0x7f
  33. //
  34. // Breakpoint type definitions
  35. //
  36. #define DBG_STATUS_CONTROL_C 0x1
  37. //
  38. // Exception Record Offset, Flag, and Enumerated Type Definitions
  39. //
  40. #define EXCEPTION_NONCONTINUABLE 0x1
  41. #define EXCEPTION_UNWINDING 0x2
  42. #define EXCEPTION_EXIT_UNWIND 0x4
  43. #define EXCEPTION_STACK_INVALID 0x8
  44. #define EXCEPTION_NESTED_CALL 0x10
  45. #define EXCEPTION_TARGET_UNWIND 0x20
  46. #define EXCEPTION_COLLIDED_UNWIND 0x40
  47. #define EXCEPTION_UNWIND 0x66
  48. #define EXCEPTION_EXECUTE_HANDLER 0x1
  49. #define EXCEPTION_CONTINUE_SEARCH 0x0
  50. #define EXCEPTION_CONTINUE_EXECUTION 0xffffffff
  51. #define ExceptionContinueExecution 0x0
  52. #define ExceptionContinueSearch 0x1
  53. #define ExceptionNestedException 0x2
  54. #define ExceptionCollidedUnwind 0x3
  55. #define ErExceptionCode 0x0
  56. #define ErExceptionFlags 0x4
  57. #define ErExceptionRecord 0x8
  58. #define ErExceptionAddress 0x10
  59. #define ErNumberParameters 0x18
  60. #define ErExceptionInformation 0x20
  61. #define ExceptionRecordLength 0xa0
  62. //
  63. // Fast Mutex Structure Offset Definitions
  64. //
  65. #define FmCount 0x0
  66. #define FmOwner 0x8
  67. #define FmContention 0x10
  68. #define FmEvent 0x18
  69. #define FmOldIrql 0x30
  70. //
  71. // Interrupt Priority Request Level Definitions
  72. //
  73. #define APC_LEVEL 0x1
  74. #define DISPATCH_LEVEL 0x2
  75. #define IPI_LEVEL 0x6
  76. #define POWER_LEVEL 0x7
  77. #define PROFILE_LEVEL 0x3
  78. #define HIGH_LEVEL 0x7
  79. #define SYNCH_LEVEL 0x5
  80. //
  81. // Large Integer Structure Offset Definitions
  82. //
  83. #define LiLowPart 0x0
  84. #define LiHighPart 0x4
  85. //
  86. // List Entry Structure Offset Definitions
  87. //
  88. #define LsFlink 0x0
  89. #define LsBlink 0x8
  90. //
  91. // String Structure Offset Definitions
  92. //
  93. #define StrLength 0x0
  94. #define StrMaximumLength 0x2
  95. #define StrBuffer 0x8
  96. //
  97. // Time Structure Offset Definitions
  98. //
  99. #define TmLowTime 0x0
  100. #define TmHighTime 0x4
  101. //
  102. // DPC object Structure Offset Definitions
  103. //
  104. #define DpType 0x0
  105. #define DpNumber 0x2
  106. #define DpImportance 0x3
  107. #define DpDpcListEntry 0x8
  108. #define DpDeferredRoutine 0x18
  109. #define DpDeferredContext 0x20
  110. #define DpSystemArgument1 0x28
  111. #define DpSystemArgument2 0x30
  112. #define DpLock 0x38
  113. #define DpcObjectLength 0x40
  114. //
  115. // Interrupt Object Structure Offset Definitions
  116. //
  117. #define InLevelSensitive 0x0
  118. #define InLatched 0x1
  119. #define InType 0x0
  120. #define InSize 0x2
  121. #define InInterruptListEntry 0x8
  122. #define InServiceRoutine 0x18
  123. #define InServiceContext 0x20
  124. #define InSpinLock 0x28
  125. #define InTickCount 0x30
  126. #define InActualLock 0x38
  127. #define InDispatchAddress 0x40
  128. #define InVector 0x48
  129. #define InIrql 0x4c
  130. #define InSynchronizeIrql 0x4d
  131. #define InFloatingSave 0x4e
  132. #define InConnected 0x4f
  133. #define InNumber 0x50
  134. #define InMode 0x54
  135. #define InShareVector 0x51
  136. #define InDispatchCount 0x5c
  137. #define InDispatchCode 0x60
  138. #define InServiceCount 0x58
  139. #define InterruptObjectLength 0x70
  140. //
  141. // Processor Control Registers Structure Offset Definitions
  142. //
  143. #define PCR_MINOR_VERSION 0x1
  144. #define PCR_MAJOR_VERSION 0x1
  145. #define PcMinorVersion 0x0
  146. #define PcMajorVersion 0x4
  147. #define PcPalBaseAddress 0x8
  148. #define PcPalMajorVersion 0x10
  149. #define PcPalMinorVersion 0x14
  150. #define PcPalSequenceVersion 0x18
  151. #define PcPalMajorSpecification 0x1c
  152. #define PcPalMinorSpecification 0x20
  153. #define PcFirmwareRestartAddress 0x28
  154. #define PcRestartBlock 0x30
  155. #define PcPalReserved 0x38
  156. #define PcPalAlignmentFixupCount 0xc30
  157. #define PcPanicStack 0xc38
  158. #define PcProcessorType 0xc40
  159. #define PcProcessorRevision 0xc44
  160. #define PcPhysicalAddressBits 0xc48
  161. #define PcMaximumAddressSpaceNumber 0xc4c
  162. #define PcPageSize 0xc50
  163. #define PcFirstLevelDcacheSize 0xc54
  164. #define PcFirstLevelDcacheFillSize 0xc58
  165. #define PcFirstLevelIcacheSize 0xc5c
  166. #define PcFirstLevelIcacheFillSize 0xc60
  167. #define PcFirmwareRevisionId 0xc64
  168. #define PcSystemType 0xc68
  169. #define PcSystemVariant 0xc70
  170. #define PcSystemRevision 0xc74
  171. #define PcSystemSerialNumber 0xc78
  172. #define PcCycleClockPeriod 0xc88
  173. #define PcSecondLevelCacheSize 0xc8c
  174. #define PcSecondLevelCacheFillSize 0xc90
  175. #define PcThirdLevelCacheSize 0xc94
  176. #define PcThirdLevelCacheFillSize 0xc98
  177. #define PcFourthLevelCacheSize 0xc9c
  178. #define PcFourthLevelCacheFillSize 0xca0
  179. #define PcPrcb 0xca8
  180. #define PcNumber 0xcb0
  181. #define PcSetMember 0xcb4
  182. #define PcHalReserved 0xcb8
  183. #define PcIrqlTable 0xeb8
  184. #define PcIrqlMask 0xed8
  185. #define PcInterruptRoutine 0x10e8
  186. #define PcReservedVectors 0x18e8
  187. #define PcMachineCheckError 0x18f8
  188. #define PcDpcStack 0x1900
  189. #define PcNotMember 0x18ec
  190. #define PcCurrentPid 0x190c
  191. #define PcSystemServiceDispatchStart 0x1918
  192. #define PcSystemServiceDispatchEnd 0x1920
  193. #define PcIdleThread 0x1928
  194. #define ProcessorControlRegisterLength 0x1930
  195. #define SharedUserData 0xffffffffff000000
  196. #define UsTickCountLow 0x0
  197. #define UsTickCountMultiplier 0x4
  198. #define UsInterruptTime 0x8
  199. #define UsSystemTime 0x14
  200. //
  201. // Processor Block Structure Offset Definitions
  202. //
  203. #define PRCB_MINOR_VERSION 0x1
  204. #define PRCB_MAJOR_VERSION 0x2
  205. #define PbMinorVersion 0x0
  206. #define PbMajorVersion 0x2
  207. #define PbCurrentThread 0x8
  208. #define PbNextThread 0x10
  209. #define PbIdleThread 0x18
  210. #define PbNumber 0x20
  211. #define PbBuildType 0x22
  212. #define PbSetMember 0x24
  213. #define PbRestartBlock 0x28
  214. #define PbPowerState 0x8b0
  215. #define ProcessorBlockLength 0x940
  216. //
  217. // Processor Power State Offset Definitions
  218. //
  219. #define PpIdleFunction 0x0
  220. //
  221. // Context Frame Offset and Flag Definitions
  222. //
  223. #define CONTEXT_FULL 0x20007
  224. #define CONTEXT_CONTROL 0x20001
  225. #define CONTEXT_FLOATING_POINT 0x20002
  226. #define CONTEXT_INTEGER 0x20004
  227. #define CxFltF0 0x0
  228. #define CxFltF1 0x8
  229. #define CxFltF2 0x10
  230. #define CxFltF3 0x18
  231. #define CxFltF4 0x20
  232. #define CxFltF5 0x28
  233. #define CxFltF6 0x30
  234. #define CxFltF7 0x38
  235. #define CxFltF8 0x40
  236. #define CxFltF9 0x48
  237. #define CxFltF10 0x50
  238. #define CxFltF11 0x58
  239. #define CxFltF12 0x60
  240. #define CxFltF13 0x68
  241. #define CxFltF14 0x70
  242. #define CxFltF15 0x78
  243. #define CxFltF16 0x80
  244. #define CxFltF17 0x88
  245. #define CxFltF18 0x90
  246. #define CxFltF19 0x98
  247. #define CxFltF20 0xa0
  248. #define CxFltF21 0xa8
  249. #define CxFltF22 0xb0
  250. #define CxFltF23 0xb8
  251. #define CxFltF24 0xc0
  252. #define CxFltF25 0xc8
  253. #define CxFltF26 0xd0
  254. #define CxFltF27 0xd8
  255. #define CxFltF28 0xe0
  256. #define CxFltF29 0xe8
  257. #define CxFltF30 0xf0
  258. #define CxFltF31 0xf8
  259. #define CxIntV0 0x100
  260. #define CxIntT0 0x108
  261. #define CxIntT1 0x110
  262. #define CxIntT2 0x118
  263. #define CxIntT3 0x120
  264. #define CxIntT4 0x128
  265. #define CxIntT5 0x130
  266. #define CxIntT6 0x138
  267. #define CxIntT7 0x140
  268. #define CxIntS0 0x148
  269. #define CxIntS1 0x150
  270. #define CxIntS2 0x158
  271. #define CxIntS3 0x160
  272. #define CxIntS4 0x168
  273. #define CxIntS5 0x170
  274. #define CxIntFp 0x178
  275. #define CxIntA0 0x180
  276. #define CxIntA1 0x188
  277. #define CxIntA2 0x190
  278. #define CxIntA3 0x198
  279. #define CxIntA4 0x1a0
  280. #define CxIntA5 0x1a8
  281. #define CxIntT8 0x1b0
  282. #define CxIntT9 0x1b8
  283. #define CxIntT10 0x1c0
  284. #define CxIntT11 0x1c8
  285. #define CxIntRa 0x1d0
  286. #define CxIntT12 0x1d8
  287. #define CxIntAt 0x1e0
  288. #define CxIntGp 0x1e8
  289. #define CxIntSp 0x1f0
  290. #define CxIntZero 0x1f8
  291. #define CxFpcr 0x200
  292. #define CxSoftFpcr 0x208
  293. #define CxFir 0x210
  294. #define CxPsr 0x218
  295. #define CxContextFlags 0x21c
  296. #define ContextFrameLength 0x230
  297. //
  298. // Exception Frame Offset Definitions and Length
  299. //
  300. #define ExFltF2 0x8
  301. #define ExFltF3 0x10
  302. #define ExFltF4 0x18
  303. #define ExFltF5 0x20
  304. #define ExFltF6 0x28
  305. #define ExFltF7 0x30
  306. #define ExFltF8 0x38
  307. #define ExFltF9 0x40
  308. #define ExIntS0 0x48
  309. #define ExIntS1 0x50
  310. #define ExIntS2 0x58
  311. #define ExIntS3 0x60
  312. #define ExIntS4 0x68
  313. #define ExIntS5 0x70
  314. #define ExIntFp 0x78
  315. #define ExPsr 0x88
  316. #define ExSwapReturn 0x80
  317. #define ExIntRa 0x0
  318. #define ExceptionFrameLength 0xa0
  319. //
  320. // Jump Offset Definitions and Length
  321. //
  322. #define JbFp 0x0
  323. #define JbPc 0x8
  324. #define JbSeb 0x10
  325. #define JbType 0x18
  326. #define JbFltF2 0x20
  327. #define JbFltF3 0x28
  328. #define JbFltF4 0x30
  329. #define JbFltF5 0x38
  330. #define JbFltF6 0x40
  331. #define JbFltF7 0x48
  332. #define JbFltF8 0x50
  333. #define JbFltF9 0x58
  334. #define JbIntS0 0x60
  335. #define JbIntS1 0x68
  336. #define JbIntS2 0x70
  337. #define JbIntS3 0x78
  338. #define JbIntS4 0x80
  339. #define JbIntS5 0x88
  340. #define JbIntS6 0x90
  341. #define JbIntSp 0x98
  342. #define JbFir 0xa0
  343. //
  344. // Trap Frame Offset Definitions and Length
  345. //
  346. #define TrFltF0 0x178
  347. #define TrFltF1 0x188
  348. #define TrFltF10 0x190
  349. #define TrFltF11 0x198
  350. #define TrFltF12 0x1a0
  351. #define TrFltF13 0x1a8
  352. #define TrFltF14 0x1b0
  353. #define TrFltF15 0x1b8
  354. #define TrFltF16 0x1c0
  355. #define TrFltF17 0x1c8
  356. #define TrFltF18 0x1d0
  357. #define TrFltF19 0x1d8
  358. #define TrFltF20 0x1e0
  359. #define TrFltF21 0x1e8
  360. #define TrFltF22 0x1f0
  361. #define TrFltF23 0x1f8
  362. #define TrFltF24 0x200
  363. #define TrFltF25 0x208
  364. #define TrFltF26 0x210
  365. #define TrFltF27 0x218
  366. #define TrFltF28 0x220
  367. #define TrFltF29 0x228
  368. #define TrFltF30 0x230
  369. #define TrIntV0 0xf0
  370. #define TrIntT0 0xf8
  371. #define TrIntT1 0x100
  372. #define TrIntT2 0x108
  373. #define TrIntT3 0x110
  374. #define TrIntT4 0x118
  375. #define TrIntT5 0x120
  376. #define TrIntT6 0x128
  377. #define TrIntT7 0x130
  378. #define TrIntFp 0x18
  379. #define TrIntA0 0x20
  380. #define TrIntA1 0x28
  381. #define TrIntA2 0x30
  382. #define TrIntA3 0x38
  383. #define TrIntA4 0x168
  384. #define TrIntA5 0x170
  385. #define TrIntT8 0x138
  386. #define TrIntT9 0x140
  387. #define TrIntT10 0x148
  388. #define TrIntT11 0x150
  389. #define TrIntT12 0x158
  390. #define TrIntAt 0x160
  391. #define TrIntGp 0x48
  392. #define TrIntSp 0x0
  393. #define TrFpcr 0x180
  394. #define TrPsr 0x10
  395. #define TrFir 0x8
  396. #define TrExceptionRecord 0x50
  397. #define TrOldIrql 0x238
  398. #define TrPreviousMode 0x23c
  399. #define TrIntRa 0x40
  400. #define TrTrapFrame 0x240
  401. #define TrapFrameLength 0x260
  402. //
  403. // Loader Parameter Block Offset Definitions
  404. //
  405. #define LpbLoadOrderListHead 0x0
  406. #define LpbMemoryDescriptorListHead 0x10
  407. #define LpbKernelStack 0x30
  408. #define LpbPrcb 0x38
  409. #define LpbProcess 0x40
  410. #define LpbThread 0x48
  411. #define LpbRegistryLength 0x50
  412. #define LpbRegistryBase 0x58
  413. #define LpbDpcStack 0xb8
  414. #define LpbFirstLevelDcacheSize 0xc0
  415. #define LpbFirstLevelDcacheFillSize 0xc4
  416. #define LpbFirstLevelIcacheSize 0xc8
  417. #define LpbFirstLevelIcacheFillSize 0xcc
  418. #define LpbGpBase 0xd0
  419. #define LpbPanicStack 0xd8
  420. #define LpbPcrPage 0xe0
  421. #define LpbPdrPage 0xe4
  422. #define LpbSecondLevelDcacheSize 0xe8
  423. #define LpbSecondLevelDcacheFillSize 0xec
  424. #define LpbSecondLevelIcacheSize 0xf0
  425. #define LpbSecondLevelIcacheFillSize 0xf4
  426. #define LpbPhysicalAddressBits 0xf8
  427. #define LpbMaximumAddressSpaceNumber 0xfc
  428. #define LpbSystemSerialNumber 0x100
  429. #define LpbSystemType 0x110
  430. #define LpbSystemVariant 0x118
  431. #define LpbSystemRevision 0x11c
  432. #define LpbProcessorType 0x120
  433. #define LpbProcessorRevision 0x124
  434. #define LpbCycleClockPeriod 0x128
  435. #define LpbPageSize 0x12c
  436. #define LpbRestartBlock 0x130
  437. #define LpbFirmwareRestartAddress 0x138
  438. #define LpbFirmwareRevisionId 0x140
  439. #define LpbPalBaseAddress 0x148
  440. //
  441. // Restart Block Structure Definitions
  442. //
  443. #define RbSignature 0x0
  444. #define RbLength 0x4
  445. #define RbVersion 0x8
  446. #define RbRevision 0xa
  447. #define RbNextRestartBlock 0xc
  448. #define RbRestartAddress 0x10
  449. #define RbBootMasterId 0x14
  450. #define RbProcessorId 0x18
  451. #define RbBootStatus 0x1c
  452. #define RbCheckSum 0x20
  453. #define RbSaveAreaLength 0x24
  454. #define RbSaveArea 0x28
  455. #define RbHaltReason 0x28
  456. #define RbLogoutFrame 0x2c
  457. #define RbPalBase 0x30
  458. #define RbIntV0 0x38
  459. #define RbIntT0 0x40
  460. #define RbIntT1 0x48
  461. #define RbIntT2 0x50
  462. #define RbIntT3 0x58
  463. #define RbIntT4 0x60
  464. #define RbIntT5 0x68
  465. #define RbIntT6 0x70
  466. #define RbIntT7 0x78
  467. #define RbIntS0 0x80
  468. #define RbIntS1 0x88
  469. #define RbIntS2 0x90
  470. #define RbIntS3 0x98
  471. #define RbIntS4 0xa0
  472. #define RbIntS5 0xa8
  473. #define RbIntFp 0xb0
  474. #define RbIntA0 0xb8
  475. #define RbIntA1 0xc0
  476. #define RbIntA2 0xc8
  477. #define RbIntA3 0xd0
  478. #define RbIntA4 0xd8
  479. #define RbIntA5 0xe0
  480. #define RbIntT8 0xe8
  481. #define RbIntT9 0xf0
  482. #define RbIntT10 0xf8
  483. #define RbIntT11 0x100
  484. #define RbIntRa 0x108
  485. #define RbIntT12 0x110
  486. #define RbIntAT 0x118
  487. #define RbIntGp 0x120
  488. #define RbIntSp 0x128
  489. #define RbIntZero 0x130
  490. #define RbFpcr 0x138
  491. #define RbFltF0 0x140
  492. #define RbFltF1 0x148
  493. #define RbFltF2 0x150
  494. #define RbFltF3 0x158
  495. #define RbFltF4 0x160
  496. #define RbFltF5 0x168
  497. #define RbFltF6 0x170
  498. #define RbFltF7 0x178
  499. #define RbFltF8 0x180
  500. #define RbFltF9 0x188
  501. #define RbFltF10 0x190
  502. #define RbFltF11 0x198
  503. #define RbFltF12 0x1a0
  504. #define RbFltF13 0x1a8
  505. #define RbFltF14 0x1b0
  506. #define RbFltF15 0x1b8
  507. #define RbFltF16 0x1c0
  508. #define RbFltF17 0x1c8
  509. #define RbFltF18 0x1d0
  510. #define RbFltF19 0x1d8
  511. #define RbFltF20 0x1e0
  512. #define RbFltF21 0x1e8
  513. #define RbFltF22 0x1f0
  514. #define RbFltF23 0x1f8
  515. #define RbFltF24 0x200
  516. #define RbFltF25 0x208
  517. #define RbFltF26 0x210
  518. #define RbFltF27 0x218
  519. #define RbFltF28 0x220
  520. #define RbFltF29 0x228
  521. #define RbFltF30 0x230
  522. #define RbFltF31 0x238
  523. #define RbAsn 0x240
  524. #define RbGeneralEntry 0x244
  525. #define RbIksp 0x248
  526. #define RbInterruptEntry 0x24c
  527. #define RbKgp 0x250
  528. #define RbMces 0x254
  529. #define RbMemMgmtEntry 0x258
  530. #define RbPanicEntry 0x25c
  531. #define RbPcr 0x260
  532. #define RbPdr 0x264
  533. #define RbPsr 0x268
  534. #define RbReiRestartAddress 0x26c
  535. #define RbSirr 0x270
  536. #define RbSyscallEntry 0x274
  537. #define RbTeb 0x278
  538. #define RbThread 0x27c
  539. #define RbPerProcessorState 0x280
  540. //
  541. // Address Space Layout Definitions
  542. //
  543. #define KSEG0_BASE 0xffffffff80000000
  544. #define KSEG2_BASE 0xffffffffc0000000
  545. //
  546. // Page Table and Directory Entry Definitions
  547. //
  548. #define PAGE_SIZE 0x2000
  549. #define PAGE_SHIFT 0xd
  550. #define PDI_SHIFT 0x17
  551. #define PTI_SHIFT 0xd
  552. //
  553. // Breakpoint Definitions
  554. //
  555. #define USER_BREAKPOINT 0x0
  556. #define KERNEL_BREAKPOINT 0x1
  557. #define BREAKIN_BREAKPOINT 0x19
  558. #define DEBUG_PRINT_BREAKPOINT 0x14
  559. #define DEBUG_PROMPT_BREAKPOINT 0x15
  560. #define DEBUG_STOP_BREAKPOINT 0x16
  561. #define DEBUG_LOAD_SYMBOLS_BREAKPOINT 0x17
  562. #define DEBUG_UNLOAD_SYMBOLS_BREAKPOINT 0x18
  563. //
  564. // Miscellaneous Definitions
  565. //
  566. #define Executive 0x0
  567. #define KernelMode 0x0
  568. #define FALSE 0x0
  569. #define TRUE 0x1
  570. #define PROCESSOR_ALPHA_21064 0x5248
  571. #define PROCESSOR_ALPHA_21164 0x52ac
  572. #define PROCESSOR_ALPHA_21066 0x524a
  573. #define PROCESSOR_ALPHA_21068 0x524c
  574. #define PROCESSOR_ALPHA_21164PC 0x52ad
  575. #define PROCESSOR_ALPHA_21264 0x5310
  576. #define MCHK_CORRECTABLE_MASK 0x1
  577. #define MCHK_CORRECTABLE 0x0
  578. #define MCHK_RETRYABLE_MASK 0x2
  579. #define MCHK_RETRYABLE 0x1
  580. #define MCES_MCK_MASK 0x1
  581. #define MCES_MCK 0x0
  582. #define MCES_SCE_MASK 0x2
  583. #define MCES_SCE 0x1
  584. #define MCES_PCE_MASK 0x4
  585. #define MCES_PCE 0x2
  586. #define MCES_DPC_MASK 0x8
  587. #define MCES_DPC 0x3
  588. #define MCES_DSC_MASK 0x10
  589. #define MCES_DSC 0x4
  590. #define MCES_DMCK_MASK 0x20
  591. #define MCES_DMCK 0x5
  592. //
  593. // Call PAL Mnemonics
  594. //
  595. // begin callpal
  596. #define bpt 0x80
  597. #define callsys 0x83
  598. #define imb 0x86
  599. #define gentrap 0xaa
  600. #define rdteb 0xab
  601. #define kbpt 0xac
  602. #define callkd 0xad
  603. #define rdteb64 0xae
  604. #define halt 0x0
  605. #define restart 0x1
  606. #define draina 0x2
  607. #define reboot 0x3
  608. #define initpal 0x4
  609. #define wrentry 0x5
  610. #define swpirql 0x6
  611. #define rdirql 0x7
  612. #define di 0x8
  613. #define ei 0x9
  614. #define swppal 0xa
  615. #define ssir 0xc
  616. #define csir 0xd
  617. #define rfe 0xe
  618. #define retsys 0xf
  619. #define swpctx 0x10
  620. #define swpprocess 0x11
  621. #define rdmces 0x12
  622. #define wrmces 0x13
  623. #define tbia 0x14
  624. #define tbis 0x15
  625. #define tbisasn 0x17
  626. #define dtbis 0x16
  627. #define rdksp 0x18
  628. #define swpksp 0x19
  629. #define rdpsr 0x1a
  630. #define rdpcr 0x1c
  631. #define rdthread 0x1e
  632. #define tbim 0x20
  633. #define tbimasn 0x21
  634. #define tbim64 0x22
  635. #define tbis64 0x23
  636. #define ealnfix 0x24
  637. #define dalnfix 0x25
  638. #define rdcounters 0x30
  639. #define rdstate 0x31
  640. #define wrperfmon 0x32
  641. #define cp_sleep 0x39
  642. #define initpcr 0x38
  643. // end callpal
  644. //
  645. // Bios Argument Structure Definitions
  646. //
  647. #define BaEax 0x0
  648. #define BaEbx 0x4
  649. #define BaEcx 0x8
  650. #define BaEdx 0xc
  651. #define BaEsi 0x10
  652. #define BaEdi 0x14
  653. #define BaEbp 0x18
  654. #define BiosArgumentLength 0x1c
  655. //
  656. // Define Vendor Callback Read/Write Error Frame Operation Types
  657. //
  658. #define ReadFrame 0x1
  659. #define WriteFrame 0x2
  660. //
  661. // Define Vendor Callback Vector Base Address
  662. //
  663. #define SYSTEM_VECTOR_BASE 0xffffffff806fe028
  664. //
  665. // Define Vendor Callback Offsets
  666. //
  667. #define VnCallBiosRoutine 0x38
  668. #define VnReadWriteErrorFrameRoutine 0x98
  669. #define VnVideoDisplayInitializeRoutine 0x10
  670. //
  671. // Define Firmware Callback Vector Base Address
  672. //
  673. #define FIRMWARE_VECTOR_BASE 0xffffffff806fe020
  674. //
  675. // Define Firmware Callback Offsets
  676. //
  677. #define FwGetEnvironmentRoutine 0x78
  678. #define FwSetEnvironmentRoutine 0x7c