1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Kernel: Ignore memory the bootloader gives us above 2^32

This commit is contained in:
Conrad Pankoff 2019-09-17 09:58:38 +10:00 committed by Andreas Kling
parent a4d52b122d
commit 9c5e3cd818

View file

@ -99,6 +99,9 @@ void MemoryManager::initialize_paging()
if (mmap->addr < (1 * MB))
continue;
if ((mmap->addr + mmap->len) > 0xffffffff)
continue;
#ifdef MM_DEBUG
kprintf("MM: considering memory at %p - %p\n",
(u32)mmap->addr, (u32)(mmap->addr + mmap->len));