From 0d719132e88c7534342ae1c5ca9b966742998127 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 16 Apr 2022 19:15:22 +0200 Subject: [PATCH] Header typo fix --- bootloader/bios/memory.asm | 4 ++-- kernel/kernel.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bootloader/bios/memory.asm b/bootloader/bios/memory.asm index 7057c8a..160cbbf 100644 --- a/bootloader/bios/memory.asm +++ b/bootloader/bios/memory.asm @@ -41,7 +41,7 @@ e820_lp: mov [es:di + 20], dword 1 mov ecx, 24 int 0x15 - jc e820_write ; carry => finished -> save entry count + jc e820_finish ; carry => finished -> save entry count e820_iter: ; skip 0 entries @@ -69,7 +69,7 @@ e820_skip: test ebx, ebx ; of ebx = 0 then complete jne e820_lp -e820_write: +e820_finish: mov [e820_stats_addr], bp ; save entry count at e820_ent clc ret diff --git a/kernel/kernel.h b/kernel/kernel.h index 43b2568..7c2e537 100644 --- a/kernel/kernel.h +++ b/kernel/kernel.h @@ -4,7 +4,8 @@ #include "../lib/str.h" #include "../lib/conv.h" -#define BANNER_COLOR 0x0f +#define BANNER_COLOR 0x0c -void kernel_motd(); +void print_kernel_motd(); +void print_kernel_stats(); void kernel_init();