mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Add KERNEL_MAPPING_BASE to Sections.h and use it in Prekernel
This commit is contained in:
parent
95992a255e
commit
33581d5c44
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/FireFox317
Commit: 33581d5c44
Pull-request: https://github.com/SerenityOS/serenity/pull/16884
Reviewed-by: https://github.com/48cf
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/mrkct
Reviewed-by: https://github.com/nico ✅
3 changed files with 7 additions and 1 deletions
|
@ -90,7 +90,7 @@ extern "C" [[noreturn]] void init()
|
|||
__builtin_memcpy(kernel_program_headers, kernel_image + kernel_elf_header.e_phoff, sizeof(ElfW(Phdr)) * kernel_elf_header.e_phnum);
|
||||
|
||||
FlatPtr kernel_physical_base = 0x200000;
|
||||
FlatPtr default_kernel_load_base = 0x2000200000;
|
||||
FlatPtr default_kernel_load_base = KERNEL_MAPPING_BASE + 0x200000;
|
||||
|
||||
FlatPtr kernel_load_base = default_kernel_load_base;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue