blob: f5b6200db884479ab2e9dc680886bb637f5d88fb [file] [log] [blame]
swissChilid8137922021-02-17 15:34:07 -08001#include "vga.h"
swissChili0b35bf22021-02-18 12:49:40 -08002#include "log.h"
swissChilid8137922021-02-17 15:34:07 -08003#include "descriptor_tables.h"
4
swissChili0b35bf22021-02-18 12:49:40 -08005int kmain(void *mboot)
swissChilid8137922021-02-17 15:34:07 -08006{
7 vga_clear();
8 vga_set_color(LIGHT_BLUE, BLACK);
9 vga_write("Hello!\nWelcome to Bluejay OS\n");
swissChilid8137922021-02-17 15:34:07 -080010 vga_set_color(WHITE, BLACK);
11
swissChili0b35bf22021-02-18 12:49:40 -080012 init_descriptor_tables();
swissChilid8137922021-02-17 15:34:07 -080013
swissChili0b35bf22021-02-18 12:49:40 -080014 vga_set_color(LIGHT_GREEN, BLACK);
15 vga_write("Setup complete!\n");
16 vga_set_color(WHITE, BLACK);
swissChilid8137922021-02-17 15:34:07 -080017
swissChili0b35bf22021-02-18 12:49:40 -080018 kassert(0, "should fail");
19
20 while (1)
21 {}
swissChilid8137922021-02-17 15:34:07 -080022
23 return 0xCAFEBABE;
24}