Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
- index 16a00823..fdcf3df4 100644
- --- a/Kernel/VM/MemoryManager.cpp
- +++ b/Kernel/VM/MemoryManager.cpp
- @@ -103,6 +103,12 @@ void MemoryManager::initialize_paging()
- continue;
- auto diff = (u32)mmap->addr % PAGE_SIZE;
- +
- + if (diff) {
- + kprintf("MILK: Skipping unaligned memory at %p\n", (u32)mmap->addr);
- + continue;
- + }
- +
- if (diff != 0) {
- kprintf("MM: got an unaligned region base from the bootloader; correcting %p by %d bytes\n", mmap->addr, diff);
- diff = PAGE_SIZE - diff;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement