From: Amelia Coutard Date: Sun, 8 May 2022 21:12:23 +0000 (+0200) Subject: Changed kernel_phys_start to not include the bootstrap code, so as to recover its... X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=fc73677262f06c4d96a4186480ae583956297f43;p=voyage-au-centre-des-fichiers.git Changed kernel_phys_start to not include the bootstrap code, so as to recover its memory as available --- 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*)