ReactOS 0.4.16-dev-981-g80eb313
|
#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 |
Variables | |
char | __ImageBase |
PVOID | PageLookupTableAddress |
PFN_NUMBER | TotalPagesInLookupTable |
PFN_NUMBER | FreePagesInLookupTable |
PFN_NUMBER | LastFreePageHint |
SIZE_T | FrLdrImageSize |
Definition at line 533 of file heap.c.
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(), RtlpAllocateMemory(), WinLdrInitializePhase1(), and XboxGetHarddiskConfigurationData().
Definition at line 321 of file heap.c.
Referenced by ExAllocatePool(), ExAllocatePoolWithTag(), FrLdrHeapAlloc(), FrLdrTempAlloc(), and RtlAllocateHeap().
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().
Definition at line 539 of file heap.c.
Referenced by CmpFree(), LoadOperatingSystem(), LoadReactOSSetup(), NtLdrGetHigherPriorityOptions(), Pc98GetHarddiskConfigurationData(), PcGetHarddiskConfigurationData(), PeLdrAllocateDataTableEntry(), PeLdrFreeDataTableEntry(), RtlpFreeMemory(), and XboxGetHarddiskConfigurationData().
Definition at line 439 of file heap.c.
Referenced by ExFreePool(), ExFreePoolWithTag(), FrLdrHeapFree(), FrLdrTempFree(), and RtlFreeHeap().
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 545 of file heap.c.
Referenced by __drv_allocatesMem(), AtaInit(), btrfs_read_extent_reg(), btrfs_readlink(), BtrFsMount(), BtrFsOpen(), CacheInternalAddBlockToCache(), DiskOpen(), ExtCopyBlockPointersByExtents(), ExtCopyDoubleIndirectBlockPointers(), ExtCopyIndirectBlockPointers(), ExtCopyTripleIndirectBlockPointers(), ExtMount(), ExtOpenFile(), ExtReadBlockPointerList(), ExtReadDirectory(), ExtReadGroupDescriptors(), ExtReadPartialBlock(), ExtReadSuperBlock(), FatBufferDirectory(), FatMount(), FatOpen(), FatOpenVolume(), FatReadPartialCluster(), FsRegisterDevice(), InfOpenFile(), InfpAddFieldToLine(), InfpAddKeyToLine(), InfpCacheAddLine(), InfpCacheAddSection(), IniAddSection(), IniAddSettingValueToSection(), IniFileInitialize(), IniModifySettingValue(), IniParseFile(), init_path(), insert_chunk_item(), IsoBufferDirectory(), IsoMount(), IsoOpen(), NormalizeArcDeviceName(), NtfsFindAttributeHelper(), NtfsFindMftRecord(), NtfsMount(), NtfsOpen(), NtfsPrepareAttributeContext(), RegImportBinaryHive(), RunLoader(), ScsiPortInitialize(), TuiFadeInBackdrop(), TuiFadeOut(), UefiDiskOpen(), UiShowMessageBoxesInArgv(), UiShowMessageBoxesInSection(), and VideoFadeIn().
Definition at line 553 of file heap.c.
Referenced by ArcOpen(), AtaInit(), btrfs_lookup_path(), btrfs_read_extent_reg(), BtrFsClose(), BtrFsMount(), CacheInitializeDrive(), CacheInternalAddBlockToCache(), CacheInternalFreeBlock(), DiskClose(), ExtClose(), ExtCopyBlockPointersByExtents(), ExtCopyDoubleIndirectBlockPointers(), ExtCopyIndirectBlockPointers(), ExtCopyTripleIndirectBlockPointers(), ExtLookupFile(), ExtMount(), ExtOpenFile(), ExtReadBlockPointerList(), ExtReadDirectory(), ExtReadGroupDescriptors(), ExtReadPartialBlock(), ExtReadSuperBlock(), FatBufferDirectory(), FatClose(), FatMount(), FatOpenVolume(), FatReadPartialCluster(), free_path(), InfCloseFile(), InfOpenFile(), InfpCacheFreeLine(), InfpCacheFreeSection(), IniAddSection(), IniAddSettingValueToSection(), IniFileInitialize(), IniFreeSection(), IniModifySettingValue(), IniParseFile(), IsoBufferDirectory(), IsoClose(), IsoLookupFile(), IsoOpen(), 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 PeLdrLoadImageEx().
PVOID MmAllocateMemoryWithType | ( | SIZE_T | MemorySize, |
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 31 of file mm.c.
Referenced by AllocateAndInitLPB(), EfiEntry(), FrLdrHeapCreate(), MempAllocatePageTables(), MempGetOrCreatePageDir(), PeLdrLoadImageEx(), 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 557 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 695 of file meminit.c.
Referenced by MmAllocateMemoryAtAddress().
PFN_NUMBER MmCountFreePagesInLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount | ||
) |
Definition at line 570 of file meminit.c.
Referenced by MmInitializeMemoryManager().
PFN_NUMBER MmFindAvailablePages | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount, | ||
PFN_NUMBER | PagesNeeded, | ||
BOOLEAN | FromEnd | ||
) |
Definition at line 588 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 647 of file meminit.c.
Referenced by MmAllocateHighestMemoryBelowAddress().
PVOID MmFindLocationForPageLookupTable | ( | PFN_NUMBER | TotalPageCount | ) |
Definition at line 437 of file meminit.c.
Referenced by MmInitializeMemoryManager().
Definition at line 215 of file mm.c.
Referenced by LoadModule(), LoadWindowsCore(), PeLdrLoadBootImage(), PeLdrLoadImageEx(), PeLdrpLoadAndScanReferencedDll(), RamDiskInitialize(), RamDiskLoadVirtualFile(), VideoFreeOffScreenBuffer(), and WinLdrLoadDeviceDriver().
PFN_NUMBER MmGetAddressablePageCountIncludingHoles | ( | VOID | ) |
Definition at line 397 of file meminit.c.
Referenced by MmInitializeMemoryManager().
ULONG MmGetBiosMemoryMap | ( | _Out_ PFREELDR_MEMORY_DESCRIPTOR * | MemoryMap | ) |
PFN_NUMBER MmGetHighestPhysicalPage | ( | VOID | ) |
Definition at line 728 of file meminit.c.
Referenced by WinLdrSetupMemoryLayout().
PFN_NUMBER MmGetLoaderPagesSpanned | ( | VOID | ) |
Definition at line 307 of file mm.c.
Referenced by LoadAndBootWindowsCommon(), and MempSetupPagingForRegion().
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 392 of file meminit.c.
Referenced by MmAllocateMemoryAtAddress(), MmAreMemoryPagesAvailable(), MmInitPageLookupTable(), and MmSetMemoryType().
PFN_NUMBER MmGetTotalPagesInLookupTable | ( | VOID | ) |
Definition at line 562 of file heap.c.
Referenced by MmInitializeMemoryManager().
Definition at line 336 of file meminit.c.
Referenced by BootMain(), and EfiEntry().
VOID MmInitPageLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | TotalPageCount | ||
) |
Definition at line 484 of file meminit.c.
Referenced by MmInitializeMemoryManager().
VOID MmMarkPagesInLookupTable | ( | PVOID | PageLookupTable, |
PFN_NUMBER | StartPage, | ||
PFN_NUMBER | PageCount, | ||
TYPE_OF_MEMORY | PageAllocated | ||
) |
Definition at line 527 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 680 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 35 of file meminit.c.
Referenced by MmCheckFreeldrImageFile(), PcMemCheckUsableMemorySize(), and PcMemFinalizeMemoryMap().
|
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(), MmAllocateHighestMemoryBelowAddress(), MmAllocateMemoryAtAddress(), MmAllocateMemoryWithType(), MmGetMemoryMap(), MmGetTotalPagesInLookupTable(), and MmInitializeMemoryManager().