From 8507e15c971a8c96fd4c92a7b9da10b7f7401b88 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 14 Mar 2022 13:35:45 +0100 Subject: [PATCH] Multiboot sign error fix --- bootloader/bootloader.asm | 4 ++-- kernel/kernel_entry.asm | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index 520aa6f..7e4433c 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -79,9 +79,9 @@ BEGIN_PM: load_kernel: mov bx, KERNEL_OFFSET ; Load kernel at the kernel offset - mov dh, 9 ; Read 15 sectors + mov dh, 10 ; Read sectors mov dl, [BOOT_DRIVE] ; Drive index - call disk_read ; Load the kernel + call disk_read ; Load the kernel ret diff --git a/kernel/kernel_entry.asm b/kernel/kernel_entry.asm index 792a15d..ee418e0 100644 --- a/kernel/kernel_entry.asm +++ b/kernel/kernel_entry.asm @@ -7,12 +7,12 @@ MBOOT_HEADER_MAGIC equ 0x1BADB002 MBOOT_HEADER_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO MBOOT_CHECKSUM equ -(MBOOT_HEADER_MAGIC + MBOOT_HEADER_FLAGS) -;align 4 -;multiboot_header: -; dd MBOOT_HEADER_MAGIC -; dd MBOOT_HEADER_FLAGS -; dd MBOOT_CHECKSUM - - call kernel_init + jmp $ + +align 4 +multiboot_header: + dd MBOOT_HEADER_MAGIC + dd MBOOT_HEADER_FLAGS + dd MBOOT_CHECKSUM