diff --git a/src/multitasking/task.c b/src/multitasking/task.c index 76f00a9..f99fef1 100644 --- a/src/multitasking/task.c +++ b/src/multitasking/task.c @@ -6,6 +6,7 @@ #include "kprintf.h" #include "memory.h" +#include #include u32 esp_backup; @@ -88,4 +89,5 @@ void exit_task(void) else current_task->status = STOPPED; toris(); + asm volatile("jmp scheduler"); }