fix: multitasking: switch to task
This commit is contained in:
parent
dbdf851dd2
commit
e60969b37a
@ -6,6 +6,7 @@
|
|||||||
#include "kprintf.h"
|
#include "kprintf.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
u32 esp_backup;
|
u32 esp_backup;
|
||||||
@ -88,4 +89,5 @@ void exit_task(void)
|
|||||||
else
|
else
|
||||||
current_task->status = STOPPED;
|
current_task->status = STOPPED;
|
||||||
toris();
|
toris();
|
||||||
|
asm volatile("jmp scheduler");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user