1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions

We're now able to unmap 100 KiB of kernel text after init. :^)
This commit is contained in:
Andreas Kling 2021-02-19 21:29:46 +01:00
parent e920c74cae
commit 2b2828ae52
36 changed files with 105 additions and 105 deletions

View file

@ -41,7 +41,7 @@ namespace Kernel {
static StorageManagement* s_the;
StorageManagement::StorageManagement(String boot_argument, bool force_pio)
UNMAP_AFTER_INIT StorageManagement::StorageManagement(String boot_argument, bool force_pio)
: m_boot_argument(boot_argument)
, m_controllers(enumerate_controllers(force_pio))
, m_storage_devices(enumerate_storage_devices())
@ -195,7 +195,7 @@ bool StorageManagement::initialized()
return (s_the != nullptr);
}
void StorageManagement::initialize(String root_device, bool force_pio)
UNMAP_AFTER_INIT void StorageManagement::initialize(String root_device, bool force_pio)
{
ASSERT(!StorageManagement::initialized());
s_the = new StorageManagement(root_device, force_pio);