mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
remove obsolete call of apic_eoi
This commit is contained in:
parent
0a322e8591
commit
58d2d3120a
2 changed files with 4 additions and 3 deletions
|
@ -310,6 +310,10 @@ size_t** irq_handler(struct state *s)
|
||||||
// Check if timers have expired that would unblock tasks
|
// Check if timers have expired that would unblock tasks
|
||||||
check_workqueues_in_irqhandler((int) s->int_no);
|
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)) {
|
if ((s->int_no == 32) || (s->int_no == 123)) {
|
||||||
// a timer interrupt may have caused unblocking of tasks
|
// a timer interrupt may have caused unblocking of tasks
|
||||||
ret = scheduler();
|
ret = scheduler();
|
||||||
|
@ -318,8 +322,6 @@ size_t** irq_handler(struct state *s)
|
||||||
ret = scheduler();
|
ret = scheduler();
|
||||||
}
|
}
|
||||||
|
|
||||||
apic_eoi(s->int_no);
|
|
||||||
|
|
||||||
#ifdef MEASURE_IRQ
|
#ifdef MEASURE_IRQ
|
||||||
if (go) {
|
if (go) {
|
||||||
diff = rdtsc() - diff;
|
diff = rdtsc() - diff;
|
||||||
|
|
|
@ -310,7 +310,6 @@ default_handler:
|
||||||
// clear cr2 to signalize that the pagefault is solved by the pagefault handler
|
// clear cr2 to signalize that the pagefault is solved by the pagefault handler
|
||||||
write_cr2(0);
|
write_cr2(0);
|
||||||
|
|
||||||
apic_eoi(s->int_no);
|
|
||||||
//do_abort();
|
//do_abort();
|
||||||
sys_exit(-EFAULT);
|
sys_exit(-EFAULT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue