summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
blob: dbeb11b25f79b7238f7a92988462196c2475897c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
    asm ("hlt");
}