aboutsummaryrefslogtreecommitdiff
path: root/kernel/entry
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/entry')
-rw-r--r--kernel/entry/entry.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/entry/entry.c b/kernel/entry/entry.c
new file mode 100644
index 0000000..2bc23a8
--- /dev/null
+++ b/kernel/entry/entry.c
@@ -0,0 +1,14 @@
+/* entry.c */
+#include "main/entry.h"
+#include "types.h"
+
+#include "multiboot.h"
+
+struct multiboot_tag *mb_tag;
+
+void entry(void *bootinfo_addr)
+{
+ mb_tag = bootinfo_addr;
+ kmain();
+ __asm__("cli\n\thlt");
+}