aboutsummaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c
new file mode 100644
index 0000000..219e3ee
--- /dev/null
+++ b/kernel/main.c
@@ -0,0 +1,14 @@
+#include "string.h"
+#include "tty.h"
+#include "vga.h"
+
+void main(void)
+{
+ tty_init();
+ gdt_init();
+ tty_puts("GDT initialized\n");
+ tty_set_color(VGA_MAKE_COLOR(VGA_LIGHT_GRAY, VGA_BLACK));
+ tty_puts("Hello, world!\n");
+ while(1)
+ ;
+}