diff options
Diffstat (limited to 'kernel/src/main.c')
| -rw-r--r-- | kernel/src/main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/src/main.c b/kernel/src/main.c new file mode 100644 index 0000000..96f3572 --- /dev/null +++ b/kernel/src/main.c @@ -0,0 +1,18 @@ +#include <stdint.h> +#include <multiboot2.h> +#include <graphics.h> +#include <idt.h> +#include <debug.h> + +int kernel_main(mb2_tag_header* multiboot_bootinfo, uint32_t multiboot_magic) +{ + init_idt(); + init_fb(multiboot_bootinfo, multiboot_magic); + + fb_draw_string(fb, "Still working...", 8, 0, WHITE, BLACK); + + for(;;) { + __asm__ volatile ("hlt;"); + } + return 0; +} |
