summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-31 15:20:18 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-31 15:20:18 +0100
commitda7b21dc06d733c30eb9912b9b64e82b02f31671 (patch)
treebc5cc930d3d9a5b06f756ea875b5cab954b0e548 /Kernel
parentfc4eae87f883a770739f08bca008c22d8657b149 (diff)
downloadserenity-da7b21dc06d733c30eb9912b9b64e82b02f31671.zip
Kernel: Don't clone kernel mappings for bottom 2 MiB VM into processes
I can't think of anything that needs these mappings anymore, so let's get rid of them.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/PageDirectory.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Kernel/VM/PageDirectory.cpp b/Kernel/VM/PageDirectory.cpp
index 939853810f..0a02e7232b 100644
--- a/Kernel/VM/PageDirectory.cpp
+++ b/Kernel/VM/PageDirectory.cpp
@@ -135,13 +135,6 @@ PageDirectory::PageDirectory(Process& process, const RangeAllocator* parent_rang
MM.unquickmap_page();
}
- // Clone bottom 2 MiB of mappings from kernel_page_directory
- PageDirectoryEntry buffer;
- auto* kernel_pd = MM.quickmap_pd(MM.kernel_page_directory(), 0);
- memcpy(&buffer, kernel_pd, sizeof(PageDirectoryEntry));
- auto* new_pd = MM.quickmap_pd(*this, 0);
- memcpy(new_pd, &buffer, sizeof(PageDirectoryEntry));
-
// If we got here, we successfully created it. Set m_process now
m_process = &process;