mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
214 lines
5.7 KiB
C
214 lines
5.7 KiB
C
|
|
||
|
HEADER("CR0 flags"),
|
||
|
CONSTANT(CR0_PE),
|
||
|
CONSTANT(CR0_MP),
|
||
|
CONSTANT(CR0_EM),
|
||
|
CONSTANT(CR0_TS),
|
||
|
CONSTANT(CR0_ET),
|
||
|
CONSTANT(CR0_NE),
|
||
|
CONSTANT(CR0_WP),
|
||
|
CONSTANT(CR0_AM),
|
||
|
CONSTANT(CR0_NW),
|
||
|
CONSTANT(CR0_CD),
|
||
|
CONSTANT(CR0_PG),
|
||
|
|
||
|
HEADER("CR4 flags"),
|
||
|
CONSTANT(CR4_VME),
|
||
|
CONSTANT(CR4_PVI),
|
||
|
CONSTANT(CR4_TSD),
|
||
|
CONSTANT(CR4_DE),
|
||
|
CONSTANT(CR4_PSE),
|
||
|
CONSTANT(CR4_PAE),
|
||
|
CONSTANT(CR4_MCE),
|
||
|
CONSTANT(CR4_PGE),
|
||
|
CONSTANT(CR4_FXSR),
|
||
|
CONSTANT(CR4_XMMEXCPT),
|
||
|
//CONSTANT(CR4_PGE_V),
|
||
|
//CONSTANT(CR4_XSAVE),
|
||
|
|
||
|
HEADER("KeFeatureBits flags"),
|
||
|
CONSTANT(KF_RDTSC),
|
||
|
CONSTANT(KF_CR4),
|
||
|
CONSTANT(KF_GLOBAL_PAGE),
|
||
|
CONSTANT(KF_LARGE_PAGE),
|
||
|
CONSTANT(KF_CMPXCHG8B),
|
||
|
CONSTANT(KF_FAST_SYSCALL),
|
||
|
CONSTANT(KF_V86_VIS),
|
||
|
//CONSTANT(KF_XSTATE),
|
||
|
|
||
|
HEADER("Machine type definitions"),
|
||
|
CONSTANT(MACHINE_TYPE_ISA),
|
||
|
CONSTANT(MACHINE_TYPE_EISA),
|
||
|
CONSTANT(MACHINE_TYPE_MCA),
|
||
|
|
||
|
HEADER("EFLAGS"),
|
||
|
CONSTANT(EFLAGS_TF),
|
||
|
CONSTANT(EFLAGS_INTERRUPT_MASK),
|
||
|
CONSTANT(EFLAGS_V86_MASK),
|
||
|
CONSTANT(EFLAGS_ALIGN_CHECK),
|
||
|
CONSTANT(EFLAGS_VIF),
|
||
|
CONSTANT(EFLAGS_VIP),
|
||
|
CONSTANT(EFLAGS_USER_SANITIZE),
|
||
|
|
||
|
HEADER("KDGT selectors"),
|
||
|
CONSTANT(KGDT_R3_DATA),
|
||
|
CONSTANT(KGDT_R3_CODE),
|
||
|
CONSTANT(KGDT_R0_CODE),
|
||
|
CONSTANT(KGDT_R0_DATA),
|
||
|
CONSTANT(KGDT_R0_PCR),
|
||
|
//CONSTANT(KGDT_STACK16),
|
||
|
//CONSTANT(KGDT_CODE16),
|
||
|
CONSTANT(KGDT_TSS),
|
||
|
CONSTANT(KGDT_R3_TEB),
|
||
|
CONSTANT(KGDT_DF_TSS),
|
||
|
CONSTANT(KGDT_NMI_TSS),
|
||
|
CONSTANT(KGDT_LDT),
|
||
|
|
||
|
CONSTANT(NPX_STATE_NOT_LOADED),
|
||
|
CONSTANT(NPX_STATE_LOADED),
|
||
|
//CONSTANT(NPX_MASK_LAZY),
|
||
|
|
||
|
/*
|
||
|
HEADER("VDM constants"),
|
||
|
CONSTANT(VDM_INDEX_Invalid),
|
||
|
CONSTANT(VDM_INDEX_0F),
|
||
|
CONSTANT(VDM_INDEX_ESPrefix),
|
||
|
CONSTANT(VDM_INDEX_CSPrefix),
|
||
|
CONSTANT(VDM_INDEX_SSPrefix),
|
||
|
CONSTANT(VDM_INDEX_DSPrefix),
|
||
|
CONSTANT(VDM_INDEX_FSPrefix),
|
||
|
CONSTANT(VDM_INDEX_GSPrefix),
|
||
|
CONSTANT(VDM_INDEX_OPER32Prefix),
|
||
|
CONSTANT(VDM_INDEX_ADDR32Prefix),
|
||
|
CONSTANT(VDM_INDEX_INSB),
|
||
|
CONSTANT(VDM_INDEX_INSW),
|
||
|
CONSTANT(VDM_INDEX_OUTSB),
|
||
|
CONSTANT(VDM_INDEX_OUTSW),
|
||
|
CONSTANT(VDM_INDEX_PUSHF),
|
||
|
CONSTANT(VDM_INDEX_POPF),
|
||
|
CONSTANT(VDM_INDEX_INTnn),
|
||
|
CONSTANT(VDM_INDEX_INTO),
|
||
|
CONSTANT(VDM_INDEX_IRET),
|
||
|
CONSTANT(VDM_INDEX_NPX),
|
||
|
CONSTANT(VDM_INDEX_INBimm),
|
||
|
CONSTANT(VDM_INDEX_INWimm),
|
||
|
CONSTANT(VDM_INDEX_OUTBimm),
|
||
|
CONSTANT(VDM_INDEX_OUTWimm),
|
||
|
CONSTANT(VDM_INDEX_INB),
|
||
|
CONSTANT(VDM_INDEX_INW),
|
||
|
CONSTANT(VDM_INDEX_OUTB),
|
||
|
CONSTANT(VDM_INDEX_OUTW),
|
||
|
CONSTANT(VDM_INDEX_LOCKPrefix),
|
||
|
CONSTANT(VDM_INDEX_REPNEPrefix),
|
||
|
CONSTANT(VDM_INDEX_REPPrefix),
|
||
|
CONSTANT(VDM_INDEX_CLI),
|
||
|
CONSTANT(VDM_INDEX_STI),
|
||
|
CONSTANT(VDM_INDEX_HLT),
|
||
|
CONSTANT(MAX_VDM_INDEX),
|
||
|
*/
|
||
|
CONSTANT(PF_XMMI_INSTRUCTIONS_AVAILABLE),
|
||
|
CONSTANT(EFLAG_SELECT),
|
||
|
//CONSTANT(IPI_FREEZE),
|
||
|
//CONSTANT(XSAVE_PRESENT),
|
||
|
|
||
|
HEADER("CONTEXT"),
|
||
|
OFFSET(CsContextFlags, CONTEXT, ContextFlags),
|
||
|
OFFSET(CsDr0, CONTEXT, Dr0),
|
||
|
OFFSET(CsDr1, CONTEXT, Dr1),
|
||
|
OFFSET(CsDr2, CONTEXT, Dr2),
|
||
|
OFFSET(CsDr3, CONTEXT, Dr3),
|
||
|
OFFSET(CsDr6, CONTEXT, Dr6),
|
||
|
OFFSET(CsDr7, CONTEXT, Dr7),
|
||
|
OFFSET(CsFloatSave, CONTEXT, FloatSave),
|
||
|
OFFSET(CsSegGs, CONTEXT, SegGs),
|
||
|
OFFSET(CsSegFs, CONTEXT, SegFs),
|
||
|
OFFSET(CsSegEs, CONTEXT, SegEs),
|
||
|
OFFSET(CsSegDs, CONTEXT, SegDs),
|
||
|
OFFSET(CsEdi, CONTEXT, Edi),
|
||
|
OFFSET(CsEsi, CONTEXT, Esi),
|
||
|
OFFSET(CsEbx, CONTEXT, Ebx),
|
||
|
OFFSET(CsEdx, CONTEXT, Edx),
|
||
|
OFFSET(CsEcx, CONTEXT, Ecx),
|
||
|
OFFSET(CsEax, CONTEXT, Eax),
|
||
|
OFFSET(CsEbp, CONTEXT, Ebp),
|
||
|
OFFSET(CsEip, CONTEXT, Eip),
|
||
|
OFFSET(CsSegCs, CONTEXT, SegCs),
|
||
|
OFFSET(CsEflags, CONTEXT, EFlags),
|
||
|
OFFSET(CsEsp, CONTEXT, Esp),
|
||
|
OFFSET(CsSegSs, CONTEXT, SegSs),
|
||
|
OFFSET(CsExtendedRegisters, CONTEXT, ExtendedRegisters),
|
||
|
SIZE(ContextFrameLength, CONTEXT),
|
||
|
SIZE(CONTEXT_LENGTH, CONTEXT),
|
||
|
|
||
|
HEADER("KGDTENTRY"),
|
||
|
OFFSET(KgdtBaseLow, KGDTENTRY, BaseLow),
|
||
|
OFFSET(KgdtBaseMid, KGDTENTRY, HighWord.Bytes.BaseMid),
|
||
|
OFFSET(KgdtBaseHi, KGDTENTRY, HighWord.Bytes.BaseHi),
|
||
|
OFFSET(KgdtLimitHi, KGDTENTRY, HighWord.Bytes.Flags2),
|
||
|
OFFSET(KgdtLimitLow, KGDTENTRY, LimitLow),
|
||
|
|
||
|
HEADER("KTRAP_FRAME"),
|
||
|
OFFSET(TsExceptionList, KTRAP_FRAME, ExceptionList),
|
||
|
OFFSET(TsPreviousPreviousMode, KTRAP_FRAME, PreviousPreviousMode),
|
||
|
OFFSET(TsSegGs, KTRAP_FRAME, SegGs),
|
||
|
OFFSET(TsSegFs, KTRAP_FRAME, SegFs),
|
||
|
OFFSET(TsSegEs, KTRAP_FRAME, SegEs),
|
||
|
OFFSET(TsSegDs, KTRAP_FRAME, SegDs),
|
||
|
OFFSET(TsEdi, KTRAP_FRAME, Edi),
|
||
|
OFFSET(TsEsi, KTRAP_FRAME, Esi),
|
||
|
OFFSET(TsEbp, KTRAP_FRAME, Ebp),
|
||
|
OFFSET(TsEbx, KTRAP_FRAME, Ebx),
|
||
|
OFFSET(TsEdx, KTRAP_FRAME, Edx),
|
||
|
OFFSET(TsEcx, KTRAP_FRAME, Ecx),
|
||
|
OFFSET(TsEax, KTRAP_FRAME, Eax),
|
||
|
OFFSET(TsErrCode, KTRAP_FRAME, ErrCode),
|
||
|
OFFSET(TsEip, KTRAP_FRAME, Eip),
|
||
|
OFFSET(TsSegCs, KTRAP_FRAME, SegCs),
|
||
|
OFFSET(TsEflags, KTRAP_FRAME, EFlags),
|
||
|
OFFSET(TsHardwareEsp, KTRAP_FRAME, HardwareEsp),
|
||
|
OFFSET(TsHardwareSegSs, KTRAP_FRAME, HardwareSegSs),
|
||
|
OFFSET(TsTempSegCs, KTRAP_FRAME, TempSegCs),
|
||
|
//OFFSET(TsLogging, KTRAP_FRAME, Logging),
|
||
|
OFFSET(TsTempEsp, KTRAP_FRAME, TempEsp),
|
||
|
OFFSET(TsDbgEbp, KTRAP_FRAME, DbgEbp),
|
||
|
OFFSET(TsDbgEip, KTRAP_FRAME, DbgEip),
|
||
|
OFFSET(TsDbgArgMark, KTRAP_FRAME, DbgArgMark),
|
||
|
OFFSET(TsDbgArgPointer, KTRAP_FRAME, DbgArgPointer),
|
||
|
OFFSET(TsDr0, KTRAP_FRAME, Dr0),
|
||
|
OFFSET(TsDr1, KTRAP_FRAME, Dr1),
|
||
|
OFFSET(TsDr2, KTRAP_FRAME, Dr2),
|
||
|
OFFSET(TsDr3, KTRAP_FRAME, Dr3),
|
||
|
OFFSET(TsDr6, KTRAP_FRAME, Dr6),
|
||
|
OFFSET(TsDr7, KTRAP_FRAME, Dr7),
|
||
|
OFFSET(TsV86Es, KTRAP_FRAME, V86Es),
|
||
|
OFFSET(TsV86Ds, KTRAP_FRAME, V86Ds),
|
||
|
OFFSET(TsV86Fs, KTRAP_FRAME, V86Fs),
|
||
|
OFFSET(TsV86Gs, KTRAP_FRAME, V86Gs),
|
||
|
SIZE(KTRAP_FRAME_LENGTH, KTRAP_FRAME),
|
||
|
CONSTANT(KTRAP_FRAME_ALIGN),
|
||
|
CONSTANT(FRAME_EDITED),
|
||
|
|
||
|
HEADER("KTSS"),
|
||
|
OFFSET(TssEsp0, KTSS, Esp0),
|
||
|
OFFSET(TssCR3, KTSS, CR3),
|
||
|
OFFSET(TssEip, KTSS, Eip),
|
||
|
OFFSET(TssEFlags, KTSS, EFlags),
|
||
|
OFFSET(TssEax, KTSS, Eax),
|
||
|
OFFSET(TssEbx, KTSS, Ebx),
|
||
|
OFFSET(TssEcx, KTSS, Ecx),
|
||
|
OFFSET(TssEdx, KTSS, Edx),
|
||
|
OFFSET(TssEsp, KTSS, Esp),
|
||
|
OFFSET(TssEbp, KTSS, Ebp),
|
||
|
OFFSET(TssEsi, KTSS, Esi),
|
||
|
OFFSET(TssEdi, KTSS, Edi),
|
||
|
OFFSET(TssEs, KTSS, Es),
|
||
|
OFFSET(TssCs, KTSS, Cs),
|
||
|
OFFSET(TssSs, KTSS, Ss),
|
||
|
OFFSET(TssDs, KTSS, Ds),
|
||
|
OFFSET(TssFs, KTSS, Fs),
|
||
|
OFFSET(TssGs, KTSS, Gs),
|
||
|
OFFSET(TssLDT, KTSS, LDT),
|
||
|
OFFSET(TssIoMapBase, KTSS, IoMapBase),
|
||
|
OFFSET(TssIoMaps, KTSS, IoMaps),
|
||
|
SIZE(TssLength, KTSS),
|