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

Kernel: Make the kernel independent from specific physical addresses

Previously the kernel relied on a fixed offset between virtual and
physical addresses based on the kernel's load address. This allows us
to specify an independent offset.
This commit is contained in:
Gunnar Beutner 2021-07-22 13:05:04 +02:00 committed by Andreas Kling
parent c4887882cc
commit 3c616ae00f
5 changed files with 7 additions and 2 deletions

View file

@ -20,6 +20,7 @@ namespace Kernel {
struct [[gnu::packed]] BootInfo {
u32 start_of_prekernel_image;
u32 end_of_prekernel_image;
u64 physical_to_virtual_offset;
u64 kernel_base;
u64 multiboot_info_ptr;
# if ARCH(X86_64)