From 42a2bdaecaee627247689b3f4ff2828fe3c8dc97 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 11 Sep 2025 14:37:04 -0400 Subject: load init from ELF executable --- main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'main.c') 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(); } -- cgit v1.2.1