mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Add mechanism to identity map the lowest 2MB
This commit is contained in:
parent
19190267a6
commit
841364b609
7 changed files with 40 additions and 12 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
u32 cr3() const { return m_directory_table->paddr().get(); }
|
||||
|
||||
RangeAllocator& range_allocator() { return m_range_allocator; }
|
||||
RangeAllocator& identity_range_allocator() { return m_identity_range_allocator; }
|
||||
|
||||
Process* process() { return m_process; }
|
||||
const Process* process() const { return m_process; }
|
||||
|
@ -62,6 +63,7 @@ private:
|
|||
|
||||
Process* m_process { nullptr };
|
||||
RangeAllocator m_range_allocator;
|
||||
RangeAllocator m_identity_range_allocator;
|
||||
RefPtr<PhysicalPage> m_directory_table;
|
||||
RefPtr<PhysicalPage> m_directory_pages[4];
|
||||
HashMap<unsigned, RefPtr<PhysicalPage>> m_physical_pages;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue