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:
parent
a4d52b122d
commit
9c5e3cd818
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue