mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:57:35 +00:00
Kernel: Don't share the bottom 2 MiB of kernel mappings with processes
Now that the last 2 users of these mappings (the Prekernel and the APIC ap boot environment) were removed, these are no longer used.
This commit is contained in:
parent
4fc28bfe02
commit
fccd0432a1
1 changed files with 0 additions and 7 deletions
|
@ -125,13 +125,6 @@ ErrorOr<NonnullRefPtr<PageDirectory>> PageDirectory::try_create_for_userspace(Vi
|
||||||
MM.unquickmap_page();
|
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(*directory, 0);
|
|
||||||
memcpy(new_pd, &buffer, sizeof(PageDirectoryEntry));
|
|
||||||
|
|
||||||
cr3_map().insert(directory->cr3(), directory);
|
cr3_map().insert(directory->cr3(), directory);
|
||||||
return directory;
|
return directory;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue