multi-cpu scheduling WIP
This commit is contained in:
@@ -213,15 +213,3 @@ void irq_save (spin_lock_ctx_t* ctx) { *ctx = amd64_irq_save_flags (); }
|
||||
|
||||
/* Restore interrupt state */
|
||||
void irq_restore (spin_lock_ctx_t* ctx) { amd64_irq_restore_flags (*ctx); }
|
||||
|
||||
/* Map custom IRQ mappings to legacy IRQs */
|
||||
uint32_t amd64_resolve_irq (uint32_t irq) {
|
||||
static const uint32_t mappings[] = {
|
||||
[SCHED_PREEMPT_TIMER] = 0,
|
||||
[TLB_SHOOTDOWN] = 6,
|
||||
[CPU_REQUEST_SCHED] = 3,
|
||||
[CPU_SPURIOUS] = 5,
|
||||
};
|
||||
|
||||
return mappings[irq];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user