From 8f7f3f90d682253b80688a749b184e83c8c0ab82 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 18 Apr 2022 01:13:32 +0200 Subject: [PATCH] Typo fix --- bootloader/bootloader.asm | 2 +- kernel/kernel.c | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index e84bb37..37d4afe 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -73,7 +73,7 @@ BEGIN_PM: [bits 16] load_kernel: mov bx, KERNEL_OFFSET ; Load kernel at the kernel offset - mov dh, 10 ; Read sectors + mov dh, 14 ; Read sectors mov dl, [BOOT_DRIVE] ; Drive index call disk_read ; Load the kernel diff --git a/kernel/kernel.c b/kernel/kernel.c index 44e8ff6..118903f 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -49,14 +49,6 @@ void print_kernel_stats() { buf = itoa(MAX_ROWS, buf, 10); println(buf, DEFAULT_COLOR); - uint ticks = 0; - while (true) { - set_cursor_pos(0, 20); - buf = itoa(ticks, buf, 10); - printalign(buf, 0x0f, MIDDLE); - ++ticks; - } - } void kernel_init() { @@ -75,4 +67,6 @@ void kernel_init() { print_kernel_motd(); print_kernel_stats(); + while(true) {} + }