From 9ad151c665300418a6298d80a771275fa3db85e0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 15 Dec 2019 16:13:08 +0100 Subject: Kernel: Improve comment about the system virtual memory map a bit --- Kernel/VM/MemoryManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 5d42389498..5515411d6c 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -78,8 +78,10 @@ void MemoryManager::initialize_paging() // 8 MB -> MAX Userspace physical pages (available for allocation!) // Basic virtual memory map: - // 0 MB -> 8MB Identity mapped. - // 0xc0000000-0xffffffff Kernel-only virtual address space. + // 0 -> 4 KB Null page (so nullptr dereferences crash!) + // 4 KB -> 8 MB Identity mapped. + // 8 MB -> 3 GB Available to userspace. + // 3GB -> 4 GB Kernel-only virtual address space (>0xc0000000) #ifdef MM_DEBUG dbgprintf("MM: Quickmap will use %p\n", m_quickmap_addr.get()); -- cgit v1.2.3