KD64 Compatibility Bringup:
[reactos.git] / reactos / ntoskrnl / include / internal / arm / ke.h
1 #ifndef __NTOSKRNL_INCLUDE_INTERNAL_ARM_KE_H
2 #define __NTOSKRNL_INCLUDE_INTERNAL_ARM_KE_H
3
4 //
5 //Lockdown TLB entries
6 //
7 #define PCR_ENTRY 0
8 #define PDR_ENTRY 2
9
10 #define IMAGE_FILE_MACHINE_ARCHITECTURE IMAGE_FILE_MACHINE_ARM
11
12 //
13 // BKPT is 4 bytes long
14 //
15 #define KD_BREAKPOINT_TYPE ULONG
16 #define KD_BREAKPOINT_SIZE sizeof(ULONG)
17 //#define KD_BREAKPOINT_VALUE
18
19 //
20 // Macros for getting and setting special purpose registers in portable code
21 //
22 #define KeGetContextPc(Context) \
23 ((Context)->Pc)
24
25 #define KeSetContextPc(Context, ProgramCounter) \
26 ((Context)->Pc = (ProgramCounter))
27
28 #define KeGetTrapFramePc(TrapFrame) \
29 ((TrapFrame)->Pc)
30
31 #define KeGetContextReturnRegister(Context) \
32 ((Context)->R0)
33
34 #define KeSetContextReturnRegister(Context, ReturnValue) \
35 ((Context)->R0 = (ReturnValue))
36
37 //
38 // Returns the Interrupt State from a Trap Frame.
39 // ON = TRUE, OFF = FALSE
40 //
41 //#define KeGetTrapFrameInterruptState(TrapFrame) \
42
43 VOID
44 KiPassiveRelease(
45 VOID
46
47 );
48
49 VOID
50 KiApcInterrupt(
51 VOID
52 );
53
54 #include "mm.h"
55
56 VOID
57 KeFillFixedEntryTb(
58 IN ARM_PTE Pte,
59 IN PVOID Virtual,
60 IN ULONG Index
61 );
62
63 VOID
64 KeFlushTb(
65 VOID
66 );
67
68 #define KiSystemStartupReal KiSystemStartup
69
70 #define KiGetPreviousMode(tf) \
71 ((tf->Spsr & CPSR_MODES) == CPSR_USER_MODE) ? UserMode: KernelMode
72
73 #endif