summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.c b/main.c
index 579f68c..34f2dd7 100644
--- a/main.c
+++ b/main.c
@@ -4,6 +4,8 @@
#include "print.h"
#include "init.h"
#include "boot.h"
+#include "tcb.h"
+#include "init.h"
#include "device/portio_uart.h"
#include "device/processor.h"
#include "device/initrd.h"
@@ -18,6 +20,15 @@ struct jove_ObjectDirectory _initDirectory = {
}
};
+static void
+_jove_tasking_main(void)
+{
+ init_load();
+
+ kprintf("Reached end of kernel task!\n");
+ hcf();
+}
+
void
_jove_main(void)
{
@@ -32,6 +43,7 @@ _jove_main(void)
initrd_setup();
#endif
+ tcb_init(_jove_tasking_main);
kprintf("Reached end of kernel main!\n");
hcf();
}