summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-15 06:47:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-15 06:48:36 +0100
commitc0ef060a7cff4530dcba72aca35a9bfc78c3629d (patch)
tree8c96df9d55ba680a3504d52edc80d599ebebf400 /Kernel
parent2f74c2f43009723c996f508f423eab3013b47792 (diff)
downloadserenity-c0ef060a7cff4530dcba72aca35a9bfc78c3629d.zip
Let's just assume we have 32MB of physical memory to work with.
I should eventually figure out the exact amount of memory but not now.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/MemoryManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/MemoryManager.cpp b/Kernel/MemoryManager.cpp
index 2d263311a3..b16cbc029a 100644
--- a/Kernel/MemoryManager.cpp
+++ b/Kernel/MemoryManager.cpp
@@ -74,10 +74,10 @@ void MemoryManager::initialize_paging()
m_free_supervisor_physical_pages.append(adopt(*new PhysicalPage(PhysicalAddress(i), true)));
#ifdef MM_DEBUG
- dbgprintf("MM: 4MB-8MB available for allocation\n");
+ dbgprintf("MM: 4MB-32MB available for allocation\n");
#endif
// The physical pages 4 MB through 8 MB are available for allocation.
- for (size_t i = (4 * MB); i < (8 * MB); i += PAGE_SIZE)
+ for (size_t i = (4 * MB); i < (32 * MB); i += PAGE_SIZE)
m_free_physical_pages.append(adopt(*new PhysicalPage(PhysicalAddress(i), false)));
m_quickmap_addr = LinearAddress(m_free_physical_pages.takeLast().leakRef()->paddr().get());
kprintf("MM: Quickmap will use P%x\n", m_quickmap_addr.get());