scheduler: slightly redo how the preemption dpc is enqueued and add a skeleton for a rescheduling ipi

This commit is contained in:
Matheus
2024-09-17 22:29:06 -03:00
parent 199ce85249
commit 749f945205
2 changed files with 26 additions and 4 deletions
+6 -1
View File
@@ -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")