memory: fix InitPaging memory map dump overflow

This commit is contained in:
Edgaru089 2021-10-12 20:17:33 +08:00
parent 6a664234a2
commit f241551d64

View File

@ -70,9 +70,9 @@ void runtime_InitPaging() {
(char *)entry < (char *)efiMemoryMap + efiMemoryMapSize; (char *)entry < (char *)efiMemoryMap + efiMemoryMapSize;
entry = NEXT_MEMORY_DESCRITOR(entry, efiDescriptorSize) { entry = NEXT_MEMORY_DESCRITOR(entry, efiDescriptorSize) {
io_Printf( io_Printf(
" [%08x-%08x] -> [%08x] %s (%d)\n", " [%08llx-%08llx] -> [%08llx] %s (%d)\n",
entry->PhysicalStart, entry->PhysicalStart,
entry->PhysicalStart + entry->NumberOfPages * SYSTEM_PAGE_SIZE, entry->PhysicalStart + SYSTEM_PAGE_SIZE * entry->NumberOfPages,
entry->VirtualStart, entry->VirtualStart,
memoryTypeName(entry->Type), memoryTypeName(entry->Type),
entry->Type); entry->Type);