diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-09-17 09:58:38 +1000 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-17 09:27:23 +0200 |
commit | 9c5e3cd818fe099932b4a6d08975b1a83b2a1be8 (patch) | |
tree | 4c087654e838bcfef555b4ccfc6eacc57f74c7de /Kernel/VM/MemoryManager.cpp | |
parent | a4d52b122d9de5ae53bb70a42251680a0973ff15 (diff) | |
download | serenity-9c5e3cd818fe099932b4a6d08975b1a83b2a1be8.zip |
Kernel: Ignore memory the bootloader gives us above 2^32
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index aec869b03a..9436273fe2 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -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)); |