interupts
E. Almqvist 3 years ago
parent afc74a8ec9
commit 8f7f3f90d6
  1. 2
      bootloader/bootloader.asm
  2. 10
      kernel/kernel.c

@ -73,7 +73,7 @@ BEGIN_PM:
[bits 16] [bits 16]
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, 10 ; Read sectors mov dh, 14 ; 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

@ -49,14 +49,6 @@ void print_kernel_stats() {
buf = itoa(MAX_ROWS, buf, 10); buf = itoa(MAX_ROWS, buf, 10);
println(buf, DEFAULT_COLOR); 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() { void kernel_init() {
@ -75,4 +67,6 @@ void kernel_init() {
print_kernel_motd(); print_kernel_motd();
print_kernel_stats(); print_kernel_stats();
while(true) {}
} }

Loading…
Cancel
Save