|
#define | _MI_PAGING_LEVELS 4 |
|
#define | _MI_HAS_NO_EXECUTE 1 |
|
#define | MI_USER_PROBE_ADDRESS (PVOID)0x000007FFFFFF0000ULL |
|
#define | MI_DEFAULT_SYSTEM_RANGE_START (PVOID)0xFFFF080000000000ULL |
|
#define | MI_REAL_SYSTEM_RANGE_START 0xFFFF800000000000ULL |
|
#define | HYPER_SPACE 0xFFFFF70000000000ULL |
|
#define | HYPER_SPACE_END 0xFFFFF77FFFFFFFFFULL |
|
#define | MI_SYSTEM_CACHE_WS_START 0xFFFFF78000001000ULL |
|
#define | MM_SYSTEM_SPACE_START 0xFFFFF88000000000ULL |
|
#define | MI_DEBUG_MAPPING (PVOID)0xFFFFF89FFFFFF000ULL |
|
#define | MI_PAGED_POOL_START (PVOID)0xFFFFF8A000000000ULL |
|
#define | MI_SESSION_SPACE_END 0xFFFFF98000000000ULL |
|
#define | MI_SYSTEM_CACHE_START 0xFFFFF98000000000ULL |
|
#define | MI_SYSTEM_CACHE_END 0xFFFFFA7FFFFFFFFFULL |
|
#define | MI_PFN_DATABASE 0xFFFFFA8000000000ULL |
|
#define | MI_NONPAGED_POOL_END (PVOID)0xFFFFFFFFFFBFFFFFULL |
|
#define | MI_HIGHEST_SYSTEM_ADDRESS (PVOID)0xFFFFFFFFFFFFFFFFULL |
|
#define | MmSystemRangeStart ((PVOID)MI_REAL_SYSTEM_RANGE_START) |
|
#define | MM_HIGHEST_USER_ADDRESS_WOW64 0x7FFEFFFF |
|
#define | MM_SYSTEM_RANGE_START_WOW64 0x80000000 |
|
#define | PDE_MAPPED_VA (PTE_PER_PAGE * PAGE_SIZE) |
|
#define | MI_SYSTEM_PTE_BASE (PVOID)MiAddressToPte(KSEG0_BASE) |
|
#define | MM_HIGHEST_VAD_ADDRESS (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE)) |
|
#define | MI_MAPPING_RANGE_START HYPER_SPACE |
|
#define | MI_MAPPING_RANGE_END (MI_MAPPING_RANGE_START + MI_HYPERSPACE_PTES * PAGE_SIZE) |
|
#define | MI_DUMMY_PTE (MI_MAPPING_RANGE_END + PAGE_SIZE) |
|
#define | MI_VAD_BITMAP (MI_DUMMY_PTE + PAGE_SIZE) |
|
#define | MI_WORKING_SET_LIST (MI_VAD_BITMAP + PAGE_SIZE) |
|
#define | MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING ((255 * _1MB) >> PAGE_SHIFT) |
|
#define | MI_MIN_PAGES_FOR_SYSPTE_TUNING ((19 * _1MB) >> PAGE_SHIFT) |
|
#define | MI_MIN_PAGES_FOR_SYSPTE_BOOST ((32 * _1MB) >> PAGE_SHIFT) |
|
#define | MI_MIN_PAGES_FOR_SYSPTE_BOOST_BOOST ((256 * _1MB) >> PAGE_SHIFT) |
|
#define | MI_MIN_INIT_PAGED_POOLSIZE (32 * _1MB) |
|
#define | MI_MAX_INIT_NONPAGED_POOL_SIZE (128ULL * 1024 * 1024 * 1024) |
|
#define | MI_MAX_NONPAGED_POOL_SIZE (128ULL * 1024 * 1024 * 1024) |
|
#define | MI_SYSTEM_VIEW_SIZE (512 * _1MB) |
|
#define | MI_SESSION_VIEW_SIZE (512 * _1MB) |
|
#define | MI_SESSION_POOL_SIZE (64 * _1MB) |
|
#define | MI_SESSION_IMAGE_SIZE (16 * _1MB) |
|
#define | MI_SESSION_WORKING_SET_SIZE (16 * _1MB) |
|
#define | MI_SESSION_SIZE |
|
#define | MI_MIN_ALLOCATION_FRAGMENT (4 * _1KB) |
|
#define | MI_ALLOCATION_FRAGMENT (64 * _1KB) |
|
#define | MI_MAX_ALLOCATION_FRAGMENT (2 * _1MB) |
|
#define | MM_PTE_SOFTWARE_PROTECTION_BITS 5 |
|
#define | MI_MIN_SECONDARY_COLORS 8 |
|
#define | MI_SECONDARY_COLORS 64 |
|
#define | MI_MAX_SECONDARY_COLORS 1024 |
|
#define | MI_NUMBER_SYSTEM_PTES 22000 |
|
#define | MI_MAX_FREE_PAGE_LISTS 4 |
|
#define | MI_HYPERSPACE_PTES (256 - 1) |
|
#define | MI_ZERO_PTES (32) |
|
#define | MI_MAX_ZERO_BITS 53 |
|
#define | SESSION_POOL_LOOKASIDES 21 |
|
#define | MM_EMPTY_PTE_LIST ((ULONG64)0xFFFFFFFF) |
|
#define | MM_EMPTY_LIST ((ULONG_PTR)-1) |
|
#define | PFN_FROM_PTE(v) ((v)->u.Hard.PageFrameNumber) |
|
#define | PFN_FROM_PDE(v) ((v)->u.Hard.PageFrameNumber) |
|
#define | PFN_FROM_PPE(v) ((v)->u.Hard.PageFrameNumber) |
|
#define | PFN_FROM_PXE(v) ((v)->u.Hard.PageFrameNumber) |
|
#define | MI_MAKE_DIRTY_PAGE(x) ((x)->u.Hard.Dirty = 1) |
|
#define | MI_MAKE_CLEAN_PAGE(x) ((x)->u.Hard.Dirty = 0) |
|
#define | MI_MAKE_ACCESSED_PAGE(x) ((x)->u.Hard.Accessed = 1) |
|
#define | MI_PAGE_DISABLE_CACHE(x) ((x)->u.Hard.CacheDisable = 1) |
|
#define | MI_PAGE_WRITE_THROUGH(x) ((x)->u.Hard.WriteThrough = 1) |
|
#define | MI_PAGE_WRITE_COMBINED(x) ((x)->u.Hard.WriteThrough = 0) |
|
#define | MI_IS_PAGE_LARGE(x) ((x)->u.Hard.LargePage == 1) |
|
#define | MI_IS_PAGE_WRITEABLE(x) ((x)->u.Hard.Write == 1) |
|
#define | MI_IS_PAGE_COPY_ON_WRITE(x) ((x)->u.Hard.CopyOnWrite == 1) |
|
#define | MI_IS_PAGE_EXECUTABLE(x) ((x)->u.Hard.NoExecute == 0) |
|
#define | MI_IS_PAGE_DIRTY(x) ((x)->u.Hard.Dirty == 1) |
|
#define | MI_MAKE_OWNER_PAGE(x) ((x)->u.Hard.Owner = 1) |
|
#define | MI_MAKE_WRITE_PAGE(x) ((x)->u.Hard.Write = 1) |
|
#define | MI_IS_NOT_PRESENT_FAULT(FaultCode) !BooleanFlagOn(FaultCode, 0x00000001) |
|
#define | MI_IS_WRITE_ACCESS(FaultCode) BooleanFlagOn(FaultCode, 0x00000002) |
|
#define | MI_IS_INSTRUCTION_FETCH(FaultCode) BooleanFlagOn(FaultCode, 0x00000010) |
|
#define | MI_WRITE_VALID_PPE MI_WRITE_VALID_PTE |
|
#define | ValidKernelPpe ValidKernelPde |
|
#define | MiAddressToPte(x) _MiAddressToPte((PVOID)(x)) |
|
#define | MiAddressToPde(x) _MiAddressToPde((PVOID)(x)) |
|
#define | MiAddressToPteOffset(x) MiAddressToPti(x) |
|
#define | MiAddressToPdeOffset(x) MiAddressToPdi(x) |
|
#define | MiGetPdeOffset(x) MiAddressToPdi(x) |
|
#define | MiIsPteOnPdeBoundary(PointerPte) ((((ULONG_PTR)PointerPte) & (PAGE_SIZE - 1)) == 0) |
|
#define | MiIsPteOnPpeBoundary(PointerPte) ((((ULONG_PTR)PointerPte) & (PDE_PER_PAGE * PAGE_SIZE - 1)) == 0) |
|
#define | MiIsPteOnPxeBoundary(PointerPte) ((((ULONG_PTR)PointerPte) & (PPE_PER_PAGE * PDE_PER_PAGE * PAGE_SIZE - 1)) == 0) |
|
#define | MiProtoPteToPte(x) (PMMPTE)(((LONG64)(x)->u.Long) >> 16) /* Sign extend 48 bits */ |
|
#define | MiSubsectionPteToSubsection(x) (PMMPTE)((LONG64)(x)->u.Subsect.SubsectionAddress) |
|