diff options
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)); |