mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
scheduler: have a separate stack for yield
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user