mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
Kernel: Stop allocating page tables from the super pages pool
We now use the regular "user" physical pages for on-demand page table allocations. This was by far the biggest source of super physical page exhaustion, so that bug should be a thing of the past now. :^) We still have super pages, but they are barely used. They remain useful for code that requires memory with a low physical address. Fixes #1000.
This commit is contained in:
parent
f71fc88393
commit
ad1f79fb4a
Notes:
sideshowbarker
2024-07-19 10:00:19 +09:00
Author: https://github.com/awesomekling
Commit: ad1f79fb4a
3 changed files with 19 additions and 34 deletions
|
@ -46,9 +46,9 @@ PageDirectory::PageDirectory(Process& process, const RangeAllocator* parent_rang
|
|||
{
|
||||
// Set up a userspace page directory
|
||||
m_directory_table = MM.allocate_supervisor_physical_page();
|
||||
m_directory_pages[0] = MM.allocate_supervisor_physical_page();
|
||||
m_directory_pages[1] = MM.allocate_supervisor_physical_page();
|
||||
m_directory_pages[2] = MM.allocate_supervisor_physical_page();
|
||||
m_directory_pages[0] = MM.allocate_user_physical_page();
|
||||
m_directory_pages[1] = MM.allocate_user_physical_page();
|
||||
m_directory_pages[2] = MM.allocate_user_physical_page();
|
||||
// Share the top 1 GB of kernel-only mappings (>=3GB or >=0xc0000000)
|
||||
m_directory_pages[3] = MM.kernel_page_directory().m_directory_pages[3];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue