swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 1 | #include "vga.h" |
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 2 | #include "log.h" |
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 3 | #include "descriptor_tables.h" |
4 | |||||
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 5 | int kmain(void *mboot) |
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 6 | { |
7 | vga_clear(); | ||||
8 | vga_set_color(LIGHT_BLUE, BLACK); | ||||
9 | vga_write("Hello!\nWelcome to Bluejay OS\n"); | ||||
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 10 | vga_set_color(WHITE, BLACK); |
11 | |||||
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 12 | init_descriptor_tables(); |
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 13 | |
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 14 | vga_set_color(LIGHT_GREEN, BLACK); |
15 | vga_write("Setup complete!\n"); | ||||
16 | vga_set_color(WHITE, BLACK); | ||||
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 17 | |
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 18 | kassert(0, "should fail"); |
19 | |||||
20 | while (1) | ||||
21 | {} | ||||
swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 22 | |
23 | return 0xCAFEBABE; | ||||
24 | } |