course 5 and some old slides
[lunaix-os.git] / lunaix-os / kernel / kernel.c
index f9c7c4c5379d429186f4e5cff01e67dc468854e3..b0ef73053d186b44b600d5f7551fa6f11670bee7 100644 (file)
@@ -1,10 +1,18 @@
 #include <lunaix/tty/tty.h>
+#include <lunaix/arch/gdt.h>
 
-void _kernel_init() {
+void
+_kernel_init()
+{
     // TODO
+    _init_gdt();
 }
 
-void _kernel_main(void* info_table) {
+void
+_kernel_main(void* info_table)
+{
+    // remove the warning
+    (void)info_table;
     // TODO
     tty_set_theme(VGA_COLOR_GREEN, VGA_COLOR_BLACK);
     tty_put_str("Hello kernel world!\nThis is second line.");