mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Slap UNMAP_AFTER_INIT on a whole bunch of functions
There's no real system here, I just added it to various functions that I don't believe we ever want to call after initialization has finished. With these changes, we're able to unmap 60 KiB of kernel text after init. :^)
This commit is contained in:
parent
32e93c8808
commit
fdf03852c9
Notes:
sideshowbarker
2024-07-18 22:08:51 +09:00
Author: https://github.com/awesomekling
Commit: fdf03852c9
22 changed files with 69 additions and 68 deletions
|
@ -44,7 +44,7 @@ static AK::Singleton<VFS> s_the;
|
|||
static constexpr int symlink_recursion_limit { 5 }; // FIXME: increase?
|
||||
static constexpr int root_mount_flags = MS_NODEV | MS_NOSUID | MS_RDONLY;
|
||||
|
||||
void VFS::initialize()
|
||||
UNMAP_AFTER_INIT void VFS::initialize()
|
||||
{
|
||||
s_the.ensure_instance();
|
||||
}
|
||||
|
@ -54,14 +54,14 @@ VFS& VFS::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
VFS::VFS()
|
||||
UNMAP_AFTER_INIT VFS::VFS()
|
||||
{
|
||||
#if VFS_DEBUG
|
||||
klog() << "VFS: Constructing VFS";
|
||||
#endif
|
||||
}
|
||||
|
||||
VFS::~VFS()
|
||||
UNMAP_AFTER_INIT VFS::~VFS()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue