1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Kernel: Use the pre-image kernel memory range introduced by KASLR

This ensures we don't just waste the memory range between the default
base load address and the actual load address that was shifted by the
KASLR offset.
This commit is contained in:
Idan Horowitz 2022-03-22 13:40:21 +02:00 committed by Andreas Kling
parent d850e483f7
commit e18632660f
5 changed files with 11 additions and 3 deletions

View file

@ -18,6 +18,7 @@ extern "C" PhysicalAddress start_of_prekernel_image;
extern "C" PhysicalAddress end_of_prekernel_image;
extern "C" size_t physical_to_virtual_offset;
extern "C" FlatPtr kernel_mapping_base;
extern "C" FlatPtr default_kernel_load_base;
extern "C" FlatPtr kernel_load_base;
#if ARCH(X86_64)
extern "C" u32 gdt64ptr;