summaryrefslogtreecommitdiff
path: root/Kernel/Random.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-19 21:29:46 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-19 21:42:18 +0100
commit2b2828ae525d22858f303f288df69e8235d3486f (patch)
treeed2b50b39f080df29c07a54f06a356b1be345635 /Kernel/Random.cpp
parente920c74cae13faac1ce2db6d921a5bbbcab39335 (diff)
downloadserenity-2b2828ae525d22858f303f288df69e8235d3486f.zip
Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions
We're now able to unmap 100 KiB of kernel text after init. :^)
Diffstat (limited to 'Kernel/Random.cpp')
-rw-r--r--Kernel/Random.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Random.cpp b/Kernel/Random.cpp
index 7e0ec2b93b..08127d7f82 100644
--- a/Kernel/Random.cpp
+++ b/Kernel/Random.cpp
@@ -42,7 +42,7 @@ KernelRng& KernelRng::the()
return *s_the;
}
-KernelRng::KernelRng()
+UNMAP_AFTER_INIT KernelRng::KernelRng()
{
bool supports_rdseed = Processor::current().has_feature(CPUFeature::RDSEED);
bool supports_rdrand = Processor::current().has_feature(CPUFeature::RDRAND);