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