remove obsolete call of apic_eoi

This commit is contained in:
Stefan Lankes 2019-01-15 23:26:20 +01:00
parent 0a322e8591
commit 58d2d3120a
2 changed files with 4 additions and 3 deletions

View File

@ -310,6 +310,10 @@ size_t** irq_handler(struct state *s)
// Check if timers have expired that would unblock tasks
check_workqueues_in_irqhandler((int) s->int_no);
if (s->int_no >= 32) {
apic_eoi(s->int_no);
}
if ((s->int_no == 32) || (s->int_no == 123)) {
// a timer interrupt may have caused unblocking of tasks
ret = scheduler();
@ -318,8 +322,6 @@ size_t** irq_handler(struct state *s)
ret = scheduler();
}
apic_eoi(s->int_no);
#ifdef MEASURE_IRQ
if (go) {
diff = rdtsc() - diff;

View File

@ -310,7 +310,6 @@ default_handler:
// clear cr2 to signalize that the pagefault is solved by the pagefault handler
write_cr2(0);
apic_eoi(s->int_no);
//do_abort();
sys_exit(-EFAULT);
}