From 458de6f4ac9d60080d2650929de422977a7041f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 26 Feb 2018 16:59:50 +0100 Subject: [PATCH] Required to load more sectors. --- boot/boot_sect.asm | 2 +- kernel/kernel.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/boot/boot_sect.asm b/boot/boot_sect.asm index 03a94c3..7aad84f 100644 --- a/boot/boot_sect.asm +++ b/boot/boot_sect.asm @@ -25,7 +25,7 @@ load_kernel: call print_string mov bx, KERNEL_OFFSET ; address to load the kernel to - mov dh, 1 ; number of sectors to load + mov dh, 3 ; number of sectors to load mov dl, [BOOT_DRIVE] ; drive to load from call disk_load diff --git a/kernel/kernel.c b/kernel/kernel.c index 53175c9..3100344 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -2,4 +2,5 @@ void main() { clear_screen(); + print("Kernel booted succesfully"); }