wip: scheduler needs to change eip or smth in order to call the fn
This commit is contained in:
23
src/kernel.c
23
src/kernel.c
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user