wip: scheduler needs to change eip or smth in order to call the fn

This commit is contained in:
2025-01-17 12:56:05 +01:00
parent b9691b1948
commit fa3ef311ad
9 changed files with 95 additions and 14 deletions

View File

@ -10,7 +10,9 @@
#include "power.h"
#include "shell.h"
#include "string.h"
#include "task.h"
#include "terminal.h"
#include "time.h"
#include "vbe.h"
#include <stdbool.h>
@ -28,6 +30,24 @@
#error "This tutorial needs to be compiled with a ix86-elf compiler"
#endif
static void uwu(void)
{
sleep(1000);
kprintf("uwu\n");
}
static void owo(void)
{
sleep(1000);
kprintf("owo\n");
}
static void awa(void)
{
sleep(1000);
kprintf("awa\n");
}
void kernel_main(multiboot_info_t *mbd, uint32_t magic)
{
terminal_initialize();
@ -41,5 +61,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);
exec_fn(awa);
shell_init();
}