add: kernel task

This commit is contained in:
2025-01-20 15:11:22 +01:00
parent b3be29246e
commit d889a251ef
5 changed files with 34 additions and 21 deletions

View File

@ -32,20 +32,19 @@
static void uwu(void)
{
sleep(1000);
kprintf("uwu\n");
}
static void owo(void)
{
sleep(1000);
kprintf("owo\n");
while (true)
kprintf("owo\n");
}
static void awa(void)
{
sleep(1000);
kprintf("awa\n");
while (true)
; // kprintf("awa\n");
}
void kernel_main(multiboot_info_t *mbd, uint32_t magic)
@ -61,8 +60,8 @@ void kernel_main(multiboot_info_t *mbd, uint32_t magic)
/* "complex 8*unknown quantity -byte descriptor table. -- Troy "
*/
/* "Martin 03:50, 22 March 2009 (UTC)\n"); */
exec_fn(uwu);
exec_fn(owo);
create_kernel_task();
exec_fn(awa);
// exec_fn(owo);
shell_init();
}