diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 16:13:08 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 16:13:08 +0100 |
commit | 9ad151c665300418a6298d80a771275fa3db85e0 (patch) | |
tree | 337b26149580673195a8672ef75aed29b4f27c53 /Kernel | |
parent | f01fd54d1baf15f5d4f393a9ac11d90425a9c88b (diff) | |
download | serenity-9ad151c665300418a6298d80a771275fa3db85e0.zip |
Kernel: Improve comment about the system virtual memory map a bit
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 6 |
1 files 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()); |