From fc73677262f06c4d96a4186480ae583956297f43 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Sun, 8 May 2022 23:12:23 +0200 Subject: [PATCH] Changed kernel_phys_start to not include the bootstrap code, so as to recover its memory as available --- linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linker.ld b/linker.ld index 4c35e41..ae3dd3a 100644 --- a/linker.ld +++ b/linker.ld @@ -6,15 +6,15 @@ SECTIONS { . = 1M; . = ALIGN(4K); - _kernel_phys_start = .; .bootstrap ALIGN(4K) : { *(.multiboot_header) . = ALIGN(4K); *(.bootstrap_text) } - . += KERNEL_VMA; + . = ALIGN(4K); + _kernel_phys_start = . - KERNEL_VMA; .text ALIGN(4K) : AT(ADDR(.text) - KERNEL_VMA) { *(.text) *(.text*) -- 2.47.0