fix: simple multitasking work !!!!
add a stack at every task, and execute task while multitasking switching
This commit is contained in:
@ -43,8 +43,9 @@ static void owo(void)
|
||||
|
||||
static void awa(void)
|
||||
{
|
||||
kprintf("awa\n");
|
||||
while (true)
|
||||
; // kprintf("awa\n");
|
||||
;
|
||||
}
|
||||
|
||||
void kernel_main(multiboot_info_t *mbd, uint32_t magic)
|
||||
@ -62,5 +63,8 @@ void kernel_main(multiboot_info_t *mbd, uint32_t magic)
|
||||
/* "Martin 03:50, 22 March 2009 (UTC)\n"); */
|
||||
create_kernel_task();
|
||||
exec_fn(awa);
|
||||
exec_fn(awa);
|
||||
exec_fn(awa);
|
||||
exec_fn(awa);
|
||||
shell_init();
|
||||
}
|
||||
|
Reference in New Issue
Block a user