diff options
author | Benji Dial <benji3.141@gmail.com> | 2020-05-16 14:10:08 -0400 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2020-05-16 14:10:08 -0400 |
commit | 31d8ae388a7ded576abd3e3d99c3d9193ea6d704 (patch) | |
tree | 9317308fbf0082924de414ef8416e76e927d79cd /src/kernel/main.c | |
parent | 806815e5f2612a45cdce6c47ace56146edfa7abf (diff) | |
download | portland-os-31d8ae388a7ded576abd3e3d99c3d9193ea6d704.tar.gz |
small stub with fat info
Diffstat (limited to 'src/kernel/main.c')
-rw-r--r-- | src/kernel/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 <stdint.h> #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 |