mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 11:35:06 +00:00
Kernel: Fix type for PageDirectory::s_cr3_map
This commit is contained in:
parent
a0c1af4327
commit
cdcb75709a
2 changed files with 5 additions and 5 deletions
|
@ -14,15 +14,15 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
static AK::Singleton<HashMap<u32, PageDirectory*>> s_cr3_map;
|
||||
static AK::Singleton<HashMap<FlatPtr, PageDirectory*>> s_cr3_map;
|
||||
|
||||
static HashMap<u32, PageDirectory*>& cr3_map()
|
||||
static HashMap<FlatPtr, PageDirectory*>& cr3_map()
|
||||
{
|
||||
VERIFY_INTERRUPTS_DISABLED();
|
||||
return *s_cr3_map;
|
||||
}
|
||||
|
||||
RefPtr<PageDirectory> PageDirectory::find_by_cr3(u32 cr3)
|
||||
RefPtr<PageDirectory> PageDirectory::find_by_cr3(FlatPtr cr3)
|
||||
{
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
return cr3_map().get(cr3).value_or({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue