ReactOS
0.4.15-dev-4614-ga5a6101
|
Go to the source code of this file.
#define MI_DUMMY_PTE (MI_MAPPING_RANGE_END + PAGE_SIZE) |
#define MI_IS_INSTRUCTION_FETCH | ( | FaultCode | ) | BooleanFlagOn(FaultCode, 0x00000010) |
#define MI_IS_NOT_PRESENT_FAULT | ( | FaultCode | ) | !BooleanFlagOn(FaultCode, 0x00000001) |
#define MI_IS_WRITE_ACCESS | ( | FaultCode | ) | BooleanFlagOn(FaultCode, 0x00000002) |
#define MI_MAPPING_RANGE_END (MI_MAPPING_RANGE_START + MI_HYPERSPACE_PTES * PAGE_SIZE) |
#define MI_MAPPING_RANGE_START HYPER_SPACE |
#define MI_MAX_INIT_NONPAGED_POOL_SIZE (128ULL * 1024 * 1024 * 1024) |
#define MI_MIN_PAGES_FOR_NONPAGED_POOL_TUNING ((255 * _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_PAGES_FOR_SYSPTE_TUNING ((19 * _1MB) >> PAGE_SHIFT) |
#define MI_SESSION_SIZE |
#define MI_SYSTEM_PTE_BASE (PVOID)MiAddressToPte(KSEG0_BASE) |
#define MI_VAD_BITMAP (MI_DUMMY_PTE + PAGE_SIZE) |
#define MI_WORKING_SET_LIST (MI_VAD_BITMAP + PAGE_SIZE) |
#define MI_WRITE_VALID_PPE MI_WRITE_VALID_PTE |
#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 MM_HIGHEST_VAD_ADDRESS (PVOID)((ULONG_PTR)MM_HIGHEST_USER_ADDRESS - (16 * PAGE_SIZE)) |
#define MmSystemRangeStart ((PVOID)MI_REAL_SYSTEM_RANGE_START) |
#define PDE_MAPPED_VA (PTE_PER_PAGE * PAGE_SIZE) |
#define ValidKernelPpe ValidKernelPde |
FORCEINLINE PMMPTE _MiAddressToPde | ( | PVOID | Address | ) |
Definition at line 150 of file mm.h.
FORCEINLINE PMMPTE _MiAddressToPte | ( | PVOID | Address | ) |
Definition at line 139 of file mm.h.
FORCEINLINE BOOLEAN MI_IS_MAPPED_PTE | ( | PMMPTE | PointerPte | ) |
Definition at line 356 of file mm.h.
Referenced by MiDeleteVirtualAddresses().
FORCEINLINE ULONG MiAddressToPdi | ( | PVOID | Address | ) |
FORCEINLINE PMMPTE MiAddressToPpe | ( | PVOID | Address | ) |
Definition at line 161 of file mm.h.
Referenced by MiBuildPagedPool(), MiBuildPfnDatabaseFromPageTables(), MiDeleteVirtualAddresses(), MiInitializeWorkingSetList(), MiInitMachineDependent(), MiIsPageTablePresent(), MiIsPdeForAddressValid(), MiLockVirtualMemory(), MiMapPPEs(), MiPteToPxe(), MiQueryAddressState(), MiUnlockVirtualMemory(), MmArmAccessFault(), MmArmInitSystem(), MmGetPhysicalAddress(), MmInitializeProcessAddressSpace(), MmIsAddressValid(), and MmProbeAndLockPages().
FORCEINLINE ULONG MiAddressToPti | ( | PVOID | Address | ) |
FORCEINLINE PMMPTE MiAddressToPxe | ( | PVOID | Address | ) |
Definition at line 171 of file mm.h.
Referenced by MiArchCreateProcessAddressSpace(), MiBuildPfnDatabaseFromPageTables(), MiDeleteVirtualAddresses(), MiInitializePageTable(), MiInitMachineDependent(), MiIsPageTablePresent(), MiIsPdeForAddressValid(), MiLockVirtualMemory(), MiQueryAddressState(), MiUnlockVirtualMemory(), MmArmAccessFault(), MmArmInitSystem(), MmGetPhysicalAddress(), MmInitializeProcessAddressSpace(), MmIsAddressValid(), and MmProbeAndLockPages().
FORCEINLINE ULONG MiAddressToPxi | ( | PVOID | Address | ) |
FORCEINLINE BOOLEAN MiIsPdeForAddressValid | ( | PVOID | Address | ) |
Definition at line 366 of file mm.h.
Referenced by MmDeleteVirtualMapping(), MmGetPageProtect(), MmIsDisabledPage(), and MmIsPagePresent().
FORCEINLINE PVOID MiPdeToAddress | ( | PMMPTE | PointerPde | ) |
Definition at line 217 of file mm.h.
Referenced by MiBuildPfnDatabaseFromPageTables(), MiDeleteVirtualAddresses(), MiPpeToPte(), and MiQueryAddressState().
FORCEINLINE PMMPDE MiPdeToPpe | ( | PMMPDE | PointerPde | ) |
Definition at line 292 of file mm.h.
Referenced by MiDeletePde(), MiFillSystemPageDirectory(), and MiMakePdeExistAndMakeValid().
FORCEINLINE PMMPTE MiPdeToPte | ( | PMMPDE | PointerPde | ) |
Definition at line 244 of file mm.h.
Referenced by MiAllocatePoolPages(), MiCalculatePageCommitment(), MiDeletePde(), and MiIsEntireRangeCommitted().
FORCEINLINE PMMPXE MiPdeToPxe | ( | PMMPDE | PointerPde | ) |
Definition at line 300 of file mm.h.
Referenced by MiDeletePde(), and MiMakePdeExistAndMakeValid().
FORCEINLINE PVOID MiPpeToAddress | ( | PMMPTE | PointerPpe | ) |
Definition at line 226 of file mm.h.
Referenced by MiBuildPfnDatabaseFromPageTables(), MiDeleteVirtualAddresses(), MiPxeToPte(), and MiQueryAddressState().
FORCEINLINE PMMPTE MiPpeToPte | ( | PMMPPE | PointerPpe | ) |
Definition at line 252 of file mm.h.
Referenced by MiCalculatePageCommitment(), and MiIsEntireRangeCommitted().
FORCEINLINE PVOID MiPteToAddress | ( | PMMPTE | PointerPte | ) |
Definition at line 208 of file mm.h.
Referenced by FreeWsleIndex(), MI_WRITE_VALID_PTE(), MiAllocatePoolPages(), MiArchCreateProcessAddressSpace(), MiBuildPagedPool(), MiCheckForContiguousMemory(), MiCopyPfn(), MiDbgTranslatePhysicalAddress(), MiDbgUnTranslatePhysicalAddress(), MiDeleteVirtualAddresses(), MiFreePoolPages(), MiGetPageProtection(), MiInitializeColorTables(), MiInitializePageTable(), MiInitializePfn(), MiInitializePfnAndMakePteValid(), MiInitializeSpecialPool(), MiInitMachineDependent(), MiIsPageTablePresent(), MiLoadImageSection(), MiLockVirtualMemory(), MiMakePdeExistAndMakeValid(), MiMapPageInHyperSpace(), MiMapPagesInZeroSpace(), MiMapPDEs(), MiMapPfnDatabase(), MiMapPPEs(), MiMapPTEs(), MiPdeToPte(), MiProtectVirtualMemory(), MiReloadBootLoadedDrivers(), MiSessionCreateInternal(), MiSetPagingOfDriver(), MiSetProtectionOnSection(), MiSetupPfnForPageTable(), MiZeroPfn(), MmAllocateNonCachedMemory(), MmAllocateSpecialPool(), MmChangeKernelResourceSectionProtection(), MmCreateKernelStack(), MmExpandSpecialPool(), MmFreeLoaderBlock(), MmGrowKernelStackEx(), MmMakeKernelResourceSectionWritable(), MmMapIoSpace(), MmMapLockedPagesSpecifyCache(), MmProbeAndLockPages(), and NtAllocateVirtualMemory().
FORCEINLINE PMMPDE MiPteToPde | ( | PMMPTE | PointerPte | ) |
Definition at line 268 of file mm.h.
Referenced by MiAllocatePoolPages(), MiCalculatePageCommitment(), MiDeletePte(), MiIsEntireRangeCommitted(), MiMapLockedPagesInUserSpace(), MiProtectVirtualMemory(), MiRemoveMappedPtes(), MiSetProtectionOnSection(), MmDeletePageFileMapping(), and NtAllocateVirtualMemory().
FORCEINLINE PMMPPE MiPteToPpe | ( | PMMPTE | PointerPte | ) |
Definition at line 276 of file mm.h.
Referenced by MiCalculatePageCommitment(), and MiIsEntireRangeCommitted().
FORCEINLINE PMMPXE MiPteToPxe | ( | PMMPTE | PointerPte | ) |
Definition at line 284 of file mm.h.
Referenced by MiCalculatePageCommitment(), and MiIsEntireRangeCommitted().
FORCEINLINE PVOID MiPxeToAddress | ( | PMMPTE | PointerPxe | ) |
Definition at line 235 of file mm.h.
Referenced by MiBuildPfnDatabaseFromPageTables(), MiDeleteVirtualAddresses(), and MiQueryAddressState().
FORCEINLINE PMMPTE MiPxeToPte | ( | PMMPXE | PointerPxe | ) |
Definition at line 260 of file mm.h.
Referenced by MiCalculatePageCommitment(), and MiIsEntireRangeCommitted().