From 4a7142dac686a70030eb513b1ff31dce38d2a9bf Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 4 Oct 2022 03:48:51 +0300 Subject: x86/bootloader/linker: set the correct load address --- arch/x86/boot/bootloader/linker.ld | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/boot/bootloader/linker.ld b/arch/x86/boot/bootloader/linker.ld index 5e8dfd6..2a08a31 100644 --- a/arch/x86/boot/bootloader/linker.ld +++ b/arch/x86/boot/bootloader/linker.ld @@ -4,7 +4,6 @@ ENTRY(_start) SECTIONS { - /* BIOS likes always to load the boot sector to the address 0x7c00, - where it is sure will not be occupied by important routines. */ - . = 0x7c00; + /* Our bootloader loads kernel at 4 KiB */ + . = 0x1000; } -- cgit v1.2.3-18-g5258