From 31d8ae388a7ded576abd3e3d99c3d9193ea6d704 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 16 May 2020 14:10:08 -0400 Subject: small stub with fat info --- src/kernel/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index 1a8b2f4..dbeb11b 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -1,7 +1,14 @@ #include #include "vga.h" +#include "fat.h" void main() { + vga_blank(); + vga_printsz("In kernel-land\n\nDisk label: "); + vga_printsn(FAT_INFO->label, 11); + vga_printsz("\nDisk size: "); + vga_printu32((FAT_INFO->sectors * FAT_INFO->bytes_per_sector) >> 10); + vga_printsz("k\n\nHalting..."); while (1) - vga_printsz("Hello! "); + asm ("hlt"); } \ No newline at end of file -- cgit v1.2.3