ReactOS 0.4.16-dev-122-g325d74c
|
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Classes | |
struct | _FREELDR_MEMORY_DESCRIPTOR |
struct | PAGE_LOOKUP_TABLE_ITEM |
Macros | |
#define | FREELDR_SECTION_COUNT 3 |
#define | HEAP_PAGES 0x400 |
#define | STACK_PAGES 0x00 |
#define | DUMP_MEM_MAP_ON_VERIFY 0 |
#define | DEFAULT_HEAP_SIZE (1024 * 1024) |
#define | TEMP_HEAP_SIZE (32 * 1024 * 1024) |
Typedefs | |
typedef struct _FREELDR_MEMORY_DESCRIPTOR | FREELDR_MEMORY_DESCRIPTOR |
typedef struct _FREELDR_MEMORY_DESCRIPTOR * | PFREELDR_MEMORY_DESCRIPTOR |
typedef struct PAGE_LOOKUP_TABLE_ITEM * | PPAGE_LOOKUP_TABLE_ITEM |
FORCEINLINE PVOID FrLdrHeapAlloc | ( | SIZE_T | MemorySize, |
ULONG | Tag | ||
) |
Definition at line 174 of file mm.h.
Referenced by BuildArgvForOsLoader(), CmpAllocate(), CopyString(), DetectAcpiBios(), DetectApmBios(), DetectBiosDisks(), DetectBiosFloppyController(), DetectBiosFloppyPeripheral(), DetectCBusBios(), DetectDisplayController(), DetectDockingStation(), DetectIsaBios(), DetectKeyboardController(), DetectKeyboardPeripheral(), DetectNesaBios(), DetectParallelPorts(), DetectPciBios(), DetectPciIrqRoutingTable(), DetectPnpBios(), DetectPointerController(), DetectPointerPeripheral(), DetectPS2Mouse(), DetectSerialPointerPeripheral(), DetectSerialPorts(), FldrCreateComponentKey(), FldrCreateSystemKey(), FldrSetIdentifier(), InitOperatingSystemList(), NtLdrGetHigherPriorityOptions(), Pc98GetHarddiskConfigurationData(), PcGetHarddiskConfigurationData(), PeLdrAllocateDataTableEntry(), WinLdrInitializePhase1(), and XboxGetHarddiskConfigurationData().
Definition at line 321 of file heap.c.
Referenced by ExAllocatePool(), ExAllocatePoolWithTag(), FrLdrHeapAlloc(), FrLdrTempAlloc(), RtlAllocateHeap(), and RtlpAllocateMemory().
Definition at line 249 of file heap.c.
Referenced by WinLdrSetupMemoryLayout().
PVOID FrLdrHeapCreate | ( | SIZE_T | MaximumSize, |
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 66 of file heap.c.
Referenced by MmInitializeHeap().
Definition at line 138 of file heap.c.
Referenced by FrLdrHeapCleanupAll().
FORCEINLINE VOID FrLdrHeapFree | ( | PVOID | MemoryPointer, |
ULONG | Tag | ||
) |
Definition at line 181 of file mm.h.
Referenced by CmpFree(), LoadOperatingSystem(), LoadReactOSSetup(), NtLdrGetHigherPriorityOptions(), Pc98GetHarddiskConfigurationData(), PcGetHarddiskConfigurationData(), PeLdrAllocateDataTableEntry(), PeLdrFreeDataTableEntry(), and XboxGetHarddiskConfigurationData().
Definition at line 439 of file heap.c.
Referenced by ExFreePool(), ExFreePoolWithTag(), FrLdrHeapFree(), FrLdrTempFree(), RtlFreeHeap(), and RtlpFreeMemory().
Definition at line 182 of file heap.c.
Referenced by FrLdrHeapCleanupAll().
Definition at line 157 of file heap.c.
Referenced by FrLdrHeapAllocateEx(), and FrLdrHeapFreeEx().
Definition at line 188 of file mm.h.
Referenced by __drv_allocatesMem(), btrfs_read_extent_reg(), btrfs_readlink(), BtrFsMount(), BtrFsOpen(), CacheInternalAddBlockToCache(), DiskOpen(), Ext2CopyDoubleIndirectBlockPointers(), Ext2CopyIndirectBlockPointers(), Ext2CopyTripleIndirectBlockPointers(), Ext2Mount(), Ext2OpenFile(), Ext2ReadBlockPointerList(), Ext2ReadDirectory(), Ext2ReadGroupDescriptors(), Ext2ReadPartialBlock(), Ext2ReadSuperBlock(), FatBufferDirectory(), FatMount(), FatOpen(), FatOpenVolume(), FatReadPartialCluster(), FsRegisterDevice(), IdentifyDevice(), InfOpenFile(), InfpAddFieldToLine(), InfpAddKeyToLine(), InfpCacheAddLine(), InfpCacheAddSection(), IniAddSection(), IniAddSettingValueToSection(), IniFileInitialize(), IniModifySettingValue(), IniParseFile(), init_path(), insert_chunk_item(), IsoBufferDirectory(), IsoOpen(), NormalizeArcDeviceName(), NtfsFindAttributeHelper(), NtfsFindMftRecord(), NtfsMount(), NtfsOpen(), NtfsPrepareAttributeContext(), RegImportBinaryHive(), RunLoader(), ScsiPortInitialize(), TuiFadeInBackdrop(), TuiFadeOut(), UefiDiskOpen(), UiShowMessageBoxesInArgv(), UiShowMessageBoxesInSection(), and VideoFadeIn().
FORCEINLINE VOID FrLdrTempFree | ( | PVOID | Allocation, |
ULONG | Tag | ||
) |
Definition at line 197 of file mm.h.
Referenced by ArcOpen(), AtaFree(), btrfs_lookup_path(), btrfs_read_extent_reg(), BtrFsClose(), BtrFsMount(), CacheInitializeDrive(), CacheInternalAddBlockToCache(), CacheInternalFreeBlock(), DiskClose(), Ext2Close(), Ext2CopyDoubleIndirectBlockPointers(), Ext2CopyIndirectBlockPointers(), Ext2CopyTripleIndirectBlockPointers(), Ext2LookupFile(), Ext2Mount(), Ext2OpenFile(), Ext2ReadBlockPointerList(), Ext2ReadDirectory(), Ext2ReadGroupDescriptors(), Ext2ReadPartialBlock(), Ext2ReadSuperBlock(), FatBufferDirectory(), FatClose(), FatMount(), FatOpenVolume(), FatReadPartialCluster(), free_path(), InfCloseFile(), InfOpenFile(), InfpCacheFreeLine(), InfpCacheFreeSection(), IniAddSection(), IniAddSettingValueToSection(), IniFileInitialize(), IniFreeSection(), IniModifySettingValue(), IniParseFile(), IsoBufferDirectory(), IsoClose(), IsoLookupFile(), NtfsClose(), NtfsFindAttributeHelper(), NtfsFindMftRecord(), NtfsMount(), NtfsOpen(), NtfsReleaseAttributeContext(), RegImportBinaryHive(), ScsiPortInitialize(), TuiFadeInBackdrop(), TuiFadeOut(), TuiRestoreScreen(), UefiDiskClose(), UiShowMessageBoxesInArgv(), UiShowMessageBoxesInSection(), and VideoFadeIn().
PVOID MmAllocateHighestMemoryBelowAddress | ( | SIZE_T | MemorySize, |
PVOID | DesiredAddress, | ||
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 160 of file mm.c.
PVOID MmAllocateMemoryAtAddress | ( | SIZE_T | MemorySize, |
PVOID | DesiredAddress, | ||
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 85 of file mm.c.
Referenced by MempAllocatePageTables(), and PeLdrLoadImage().
PVOID MmAllocateMemoryWithType | ( | SIZE_T | MemorySize, |
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 31 of file mm.c.
Referenced by AllocateAndInitLPB(), EfiEntry(), FrLdrHeapCreate(), MempAllocatePageTables(), MempGetOrCreatePageDir(), PeLdrLoadImage(), RamDiskLoadVirtualFile(), RegLoadHiveLog(), UefiInitializeBootDevices(), UefiSetupBlockDevices(), VideoAllocateOffScreenBuffer(), WinLdrLoadModule(), WinLdrLoadNLSData(), WinLdrLoadSystemHive(), WinLdrSetupMachineDependent(), and WinLdrSetupMemoryLayout().
VOID MmAllocatePagesInLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | StartPage, | ||
PFN_NUMBER | PageCount, | ||
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 536 of file meminit.c.
Referenced by MmAllocateHighestMemoryBelowAddress(), MmAllocateMemoryAtAddress(), MmAllocateMemoryWithType(), and MmSetMemoryType().
BOOLEAN MmAreMemoryPagesAvailable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount, | ||
PVOID | PageAddress, | ||
PFN_NUMBER | PageCount | ||
) |
Definition at line 674 of file meminit.c.
Referenced by MmAllocateMemoryAtAddress().
PFN_NUMBER MmCountFreePagesInLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount | ||
) |
Definition at line 549 of file meminit.c.
Referenced by MmInitializeMemoryManager().
PFN_NUMBER MmFindAvailablePages | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount, | ||
PFN_NUMBER | PagesNeeded, | ||
BOOLEAN | FromEnd | ||
) |
Definition at line 567 of file meminit.c.
Referenced by MmAllocateMemoryWithType(), and MmFindAvailablePagesBeforePage().
PFN_NUMBER MmFindAvailablePagesBeforePage | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount, | ||
PFN_NUMBER | PagesNeeded, | ||
PFN_NUMBER | LastPage | ||
) |
Definition at line 626 of file meminit.c.
Referenced by MmAllocateHighestMemoryBelowAddress().
PVOID MmFindLocationForPageLookupTable | ( | PFN_NUMBER | TotalPageCount | ) |
Definition at line 416 of file meminit.c.
Referenced by MmInitializeMemoryManager().
Definition at line 215 of file mm.c.
Referenced by LoadBootDeviceDriver(), LoadModule(), LoadWindowsCore(), PeLdrLoadImage(), PeLdrpLoadAndScanReferencedDll(), RamDiskInitialize(), RamDiskLoadVirtualFile(), VideoFreeOffScreenBuffer(), and WinLdrLoadDeviceDriver().
PFN_NUMBER MmGetAddressablePageCountIncludingHoles | ( | VOID | ) |
Definition at line 376 of file meminit.c.
Referenced by MmInitializeMemoryManager().
PPAGE_LOOKUP_TABLE_ITEM MmGetMemoryMap | ( | PFN_NUMBER * | NoEntries | ) |
Definition at line 297 of file mm.c.
Referenced by WinLdrSetupMemoryLayout().
PFN_NUMBER MmGetPageNumberFromAddress | ( | PVOID | Address | ) |
Definition at line 371 of file meminit.c.
Referenced by MmAllocateMemoryAtAddress(), MmAreMemoryPagesAvailable(), MmInitPageLookupTable(), and MmSetMemoryType().
Definition at line 536 of file heap.c.
Referenced by MmInitializeMemoryManager().
Definition at line 315 of file meminit.c.
Referenced by BootMain(), and EfiEntry().
VOID MmInitPageLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount | ||
) |
Definition at line 463 of file meminit.c.
Referenced by MmInitializeMemoryManager().
VOID MmMarkPagesInLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | StartPage, | ||
PFN_NUMBER | PageCount, | ||
TYPE_OF_MEMORY | PageAllocated | ||
) |
Definition at line 506 of file meminit.c.
Referenced by FrLdrHeapDestroy(), FrLdrHeapRelease(), and MmInitPageLookupTable().
VOID MmSetMemoryType | ( | PVOID | MemoryAddress, |
SIZE_T | MemorySize, | ||
TYPE_OF_MEMORY | NewType | ||
) |
Definition at line 144 of file mm.c.
Referenced by MempAllocatePageTables().
VOID MmUpdateLastFreePageHint | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount | ||
) |
Definition at line 659 of file meminit.c.
Referenced by MmInitializeMemoryManager().
|
extern |
|
extern |
Definition at line 28 of file meminit.c.
Referenced by MmAllocateHighestMemoryBelowAddress(), MmAllocateMemoryAtAddress(), MmAllocateMemoryWithType(), and MmInitializeMemoryManager().
|
extern |
Definition at line 34 of file heap.c.
Referenced by ExAllocatePool(), ExAllocatePoolWithTag(), ExFreePool(), ExFreePoolWithTag(), FrLdrHeapAlloc(), FrLdrHeapCleanupAll(), FrLdrHeapFree(), MmInitializeHeap(), RtlAllocateHeap(), RtlFreeHeap(), RtlpAllocateMemory(), and RtlpFreeMemory().
|
extern |
Definition at line 35 of file meminit.c.
Referenced by MmCheckFreeldrImageFile(), PcMemCheckUsableMemorySize(), and PcMemFinalizeMemoryMap().
|
extern |
Definition at line 35 of file heap.c.
Referenced by FrLdrHeapCleanupAll(), FrLdrTempAlloc(), FrLdrTempFree(), and MmInitializeHeap().
|
extern |
Definition at line 29 of file meminit.c.
Referenced by MmFindAvailablePages(), MmInitializeMemoryManager(), and MmUpdateLastFreePageHint().
|
extern |
Definition at line 26 of file meminit.c.
Referenced by FrLdrHeapDestroy(), FrLdrHeapRelease(), MmAllocateHighestMemoryBelowAddress(), MmAllocateMemoryAtAddress(), MmAllocateMemoryWithType(), MmGetMemoryMap(), MmInitializeMemoryManager(), and MmSetMemoryType().
|
extern |
Definition at line 27 of file meminit.c.
Referenced by CacheInitializeDrive(), MempAllocatePageTables(), MmAllocateHighestMemoryBelowAddress(), MmAllocateMemoryAtAddress(), MmAllocateMemoryWithType(), MmGetMemoryMap(), and MmInitializeMemoryManager().