summaryrefslogtreecommitdiff
path: root/Kernel/GlobalProcessExposed.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-07-26 15:10:51 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-27 13:15:16 +0200
commit57417a3d6efe872d26cc790c5cc009dac3a3c8be (patch)
tree8ec61e9fcd76db03945c5b413276a920fc422087 /Kernel/GlobalProcessExposed.cpp
parente3d2ca6bd20257bbb49a8da5e37b8e71dc697333 (diff)
downloadserenity-57417a3d6efe872d26cc790c5cc009dac3a3c8be.zip
Kernel: Support loading the kernel at almost arbitrary virtual addresses
This enables further work on implementing KASLR by adding relocation support to the pre-kernel and updating the kernel to be less dependent on specific virtual memory layouts.
Diffstat (limited to 'Kernel/GlobalProcessExposed.cpp')
-rw-r--r--Kernel/GlobalProcessExposed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp
index 5243264654..6cdb3f2a7d 100644
--- a/Kernel/GlobalProcessExposed.cpp
+++ b/Kernel/GlobalProcessExposed.cpp
@@ -720,7 +720,7 @@ private:
{
if (!Process::current()->is_superuser())
return false;
- builder.append(String::number(kernel_base));
+ builder.append(String::number(kernel_load_base));
return true;
}
};