mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
AK: Get rid of make_singleton function
Just default the InitFunction template argument.
This commit is contained in:
parent
8a75e0b892
commit
5a98e329d1
31 changed files with 42 additions and 46 deletions
|
@ -38,7 +38,7 @@ static const FlatPtr userspace_range_base = 0x00800000;
|
|||
static const FlatPtr userspace_range_ceiling = 0xbe000000;
|
||||
static const FlatPtr kernelspace_range_base = 0xc0800000;
|
||||
|
||||
static auto s_cr3_map = AK::make_singleton<HashMap<u32, PageDirectory*>>();
|
||||
static AK::Singleton<HashMap<u32, PageDirectory*>> s_cr3_map;
|
||||
|
||||
static HashMap<u32, PageDirectory*>& cr3_map()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue