scheduler: have a separate stack for yield

This commit is contained in:
Matheus
2023-05-03 19:11:40 -03:00
parent 393e34a04e
commit b5d4fc07e2
4 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ typedef struct {
}
void arch_context_switch(context_t *context);
void arch_context_saveandcall(void (*fn)(context_t *context));
void arch_context_saveandcall(void (*fn)(context_t *context), void *stack);
#include <string.h>
+1
View File
@@ -24,6 +24,7 @@ typedef struct cpu_t {
thread_t *thread;
thread_t *idlethread;
timerentry_t schedtimerentry;
void *schedulerstack;
} cpu_t;
#define CPU_HALT() asm volatile("hlt")