Multiboot sign error fix

rust
E. Almqvist 3 years ago
parent 185a67c9d1
commit 8507e15c97
  1. 2
      bootloader/bootloader.asm
  2. 14
      kernel/kernel_entry.asm

@ -79,7 +79,7 @@ BEGIN_PM:
load_kernel: load_kernel:
mov bx, KERNEL_OFFSET ; Load kernel at the kernel offset 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 mov dl, [BOOT_DRIVE] ; Drive index
call disk_read ; Load the kernel call disk_read ; Load the kernel

@ -7,12 +7,12 @@ MBOOT_HEADER_MAGIC equ 0x1BADB002
MBOOT_HEADER_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO MBOOT_HEADER_FLAGS equ MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO
MBOOT_CHECKSUM equ -(MBOOT_HEADER_MAGIC + MBOOT_HEADER_FLAGS) 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 call kernel_init
jmp $ jmp $
align 4
multiboot_header:
dd MBOOT_HEADER_MAGIC
dd MBOOT_HEADER_FLAGS
dd MBOOT_CHECKSUM

Loading…
Cancel
Save