mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
scheduler: slightly redo how the preemption dpc is enqueued and add a skeleton for a rescheduling ipi
This commit is contained in:
@@ -30,9 +30,14 @@ typedef struct cpu_t {
|
||||
thread_t *idlethread;
|
||||
timerentry_t schedtimerentry;
|
||||
void *schedulerstack;
|
||||
|
||||
isr_t *isrqueue;
|
||||
dpc_t *dpcqueue;
|
||||
|
||||
isr_t *dpcisr;
|
||||
dpc_t *dpcqueue;
|
||||
|
||||
dpc_t reschedule_dpc;
|
||||
isr_t *reschedule_isr;
|
||||
} cpu_t;
|
||||
|
||||
#define CPU_HALT() asm volatile("hlt")
|
||||
|
||||
Reference in New Issue
Block a user