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.
This commit is contained in:
Gunnar Beutner 2021-07-26 15:10:51 +02:00 committed by Andreas Kling
commit 57417a3d6e
Notes: sideshowbarker 2024-07-18 08:03:25 +09:00
20 changed files with 123 additions and 87 deletions

View file

@ -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;
}
};