diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-11 14:37:04 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-11 14:37:04 -0400 |
commit | 42a2bdaecaee627247689b3f4ff2828fe3c8dc97 (patch) | |
tree | 17e59594b1979912401eecb05891234e028e8869 /main.c | |
parent | 7f350e7ee1c2c38e5ac0b6c22c17388f6c78f0b5 (diff) | |
download | jove-kernel-42a2bdaecaee627247689b3f4ff2828fe3c8dc97.tar.gz jove-kernel-42a2bdaecaee627247689b3f4ff2828fe3c8dc97.tar.bz2 jove-kernel-42a2bdaecaee627247689b3f4ff2828fe3c8dc97.zip |
load init from ELF executable
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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(); } |