mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
106 lines
2.9 KiB
C
106 lines
2.9 KiB
C
|
|
||
|
RAW(""),
|
||
|
RAW("#include <kxarm.h>"),
|
||
|
RAW(""),
|
||
|
|
||
|
HEADER("CPSR Values"),
|
||
|
CONSTANT(CPSR_THUMB_ENABLE),
|
||
|
CONSTANT(CPSR_FIQ_DISABLE),
|
||
|
CONSTANT(CPSR_IRQ_DISABLE),
|
||
|
CONSTANT(CPSR_USER_MODE),
|
||
|
CONSTANT(CPSR_FIQ_MODE),
|
||
|
CONSTANT(CPSR_IRQ_MODE),
|
||
|
CONSTANT(CPSR_SVC_MODE),
|
||
|
CONSTANT(CPSR_ABORT_MODE),
|
||
|
CONSTANT(CPSR_UND_MODE),
|
||
|
CONSTANT(CPSR_MODES),
|
||
|
|
||
|
HEADER("C1 Register Values"),
|
||
|
CONSTANT(C1_MMU_CONTROL),
|
||
|
CONSTANT(C1_ALIGNMENT_CONTROL),
|
||
|
CONSTANT(C1_DCACHE_CONTROL),
|
||
|
CONSTANT(C1_ICACHE_CONTROL),
|
||
|
CONSTANT(C1_VECTOR_CONTROL),
|
||
|
|
||
|
HEADER("Loader Parameter Block Offsets"),
|
||
|
OFFSET(LpbKernelStack, LOADER_PARAMETER_BLOCK, KernelStack),
|
||
|
OFFSET(LpbPanicStack, LOADER_PARAMETER_BLOCK, u.Arm.PanicStack),
|
||
|
OFFSET(LpbInterruptStack, LOADER_PARAMETER_BLOCK, u.Arm.InterruptStack),
|
||
|
|
||
|
HEADER("Trap Frame offsets"),
|
||
|
OFFSET(TrDbgArgMark, KTRAP_FRAME, DbgArgMark),
|
||
|
OFFSET(TrR0, KTRAP_FRAME, R0),
|
||
|
OFFSET(TrR1, KTRAP_FRAME, R1),
|
||
|
OFFSET(TrR2, KTRAP_FRAME, R2),
|
||
|
OFFSET(TrR3, KTRAP_FRAME, R3),
|
||
|
OFFSET(TrR4, KTRAP_FRAME, R4),
|
||
|
OFFSET(TrR5, KTRAP_FRAME, R5),
|
||
|
OFFSET(TrR6, KTRAP_FRAME, R6),
|
||
|
OFFSET(TrR7, KTRAP_FRAME, R7),
|
||
|
OFFSET(TrR8, KTRAP_FRAME, R8),
|
||
|
OFFSET(TrR9, KTRAP_FRAME, R9),
|
||
|
OFFSET(TrR10, KTRAP_FRAME, R10),
|
||
|
OFFSET(TrR11, KTRAP_FRAME, R11),
|
||
|
OFFSET(TrR12, KTRAP_FRAME, R12),
|
||
|
OFFSET(TrUserSp, KTRAP_FRAME, UserSp),
|
||
|
OFFSET(TrUserLr, KTRAP_FRAME, UserLr),
|
||
|
OFFSET(TrSvcSp, KTRAP_FRAME, SvcSp),
|
||
|
OFFSET(TrSvcLr, KTRAP_FRAME, SvcLr),
|
||
|
OFFSET(TrPc, KTRAP_FRAME, Pc),
|
||
|
OFFSET(TrSpsr, KTRAP_FRAME, Spsr),
|
||
|
SIZE(TrapFrameLength, KTRAP_FRAME),
|
||
|
|
||
|
HEADER("Exception Frame offsets"),
|
||
|
OFFSET(ExR4, KEXCEPTION_FRAME, R4),
|
||
|
OFFSET(ExR5, KEXCEPTION_FRAME, R5),
|
||
|
OFFSET(ExR6, KEXCEPTION_FRAME, R6),
|
||
|
OFFSET(ExR7, KEXCEPTION_FRAME, R7),
|
||
|
OFFSET(ExR8, KEXCEPTION_FRAME, R8),
|
||
|
OFFSET(ExR9, KEXCEPTION_FRAME, R9),
|
||
|
OFFSET(ExR10, KEXCEPTION_FRAME, R10),
|
||
|
OFFSET(ExR11, KEXCEPTION_FRAME, R11),
|
||
|
OFFSET(ExLr, KEXCEPTION_FRAME, Lr),
|
||
|
OFFSET(ExSpsr, KEXCEPTION_FRAME, Psr), // name?
|
||
|
SIZE(ExceptionFrameLength, KEXCEPTION_FRAME),
|
||
|
|
||
|
HEADER("PCR"),
|
||
|
CONSTANTX(KiPcr, 0xFFFFF000),
|
||
|
|
||
|
HEADER("PCR Offsets"),
|
||
|
//OFFSET(PcCurrentIrql, KPCR, CurrentIrql),
|
||
|
|
||
|
HEADER("KTHREAD Offsets"),
|
||
|
OFFSET(ThKernelStack, KTHREAD, KernelStack),
|
||
|
|
||
|
HEADER("CONTEXT Offsets"),
|
||
|
OFFSET(CsContextFlags, CONTEXT, ContextFlags),
|
||
|
OFFSET(CsR0, CONTEXT, R0),
|
||
|
OFFSET(CsR1, CONTEXT, R1),
|
||
|
OFFSET(CsR2, CONTEXT, R2),
|
||
|
OFFSET(CsR3, CONTEXT, R3),
|
||
|
OFFSET(CsR4, CONTEXT, R4),
|
||
|
OFFSET(CsR5, CONTEXT, R5),
|
||
|
OFFSET(CsR6, CONTEXT, R6),
|
||
|
OFFSET(CsR7, CONTEXT, R7),
|
||
|
OFFSET(CsR8, CONTEXT, R8),
|
||
|
OFFSET(CsR9, CONTEXT, R9),
|
||
|
OFFSET(CsR10, CONTEXT, R10),
|
||
|
OFFSET(CsR11, CONTEXT, R11),
|
||
|
OFFSET(CsR12, CONTEXT, R12),
|
||
|
OFFSET(CsSp, CONTEXT, Sp),
|
||
|
OFFSET(CsLr, CONTEXT, Lr),
|
||
|
OFFSET(CsPc, CONTEXT, Pc),
|
||
|
OFFSET(CsPsr, CONTEXT, Psr),
|
||
|
|
||
|
CONSTANT(CONTEXT_FULL),
|
||
|
|
||
|
HEADER("DebugService Control Types"),
|
||
|
CONSTANT(BREAKPOINT_BREAK),
|
||
|
CONSTANT(BREAKPOINT_PRINT),
|
||
|
CONSTANT(BREAKPOINT_PROMPT),
|
||
|
CONSTANT(BREAKPOINT_LOAD_SYMBOLS),
|
||
|
CONSTANT(BREAKPOINT_UNLOAD_SYMBOLS),
|
||
|
CONSTANT(BREAKPOINT_COMMAND_STRING),
|
||
|
|
||
|
|