4 #define USPCR 0x7FFF0000
5 #define USERPCR ((volatile KPCR * const)USPCR)
12 // Address space layout
14 extern PVOID MmHighestUserAddress
;
15 extern PVOID MmSystemRangeStart
;
16 extern ULONG_PTR MmUserProbeAddress
;
17 #define MM_HIGHEST_USER_ADDRESS MmHighestUserAddress
18 #define MM_SYSTEM_RANGE_START MmSystemRangeStart
19 #define MM_USER_PROBE_ADDRESS MmUserProbeAddress
20 #define MM_LOWEST_USER_ADDRESS (PVOID)0x10000
21 #define MM_LOWEST_SYSTEM_ADDRESS (PVOID)0xC0800000
26 // Used to contain PFNs and PFN counts
28 //typedef ULONG PFN_COUNT;
29 //typedef ULONG PFN_NUMBER, *PPFN_NUMBER;
30 //typedef LONG SPFN_NUMBER, *PSPFN_NUMBER;
37 // Processor Control Region
43 #define ASSERT_BREAKPOINT BREAKPOINT_COMMAND_STRING + 1
46 #define RESULT_NEGATIVE 1
47 #define RESULT_POSITIVE 2
52 #define InterlockedDecrement _InterlockedDecrement
53 #define InterlockedIncrement _InterlockedIncrement
54 #define InterlockedExchange _InterlockedExchange