summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-28 17:38:35 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-28 17:57:29 +0200
commit955ceba97a07d11305404aaf62dd052a20d6414f (patch)
tree83444b682d5da5bcf5af94f5d9e1d3e27804b5f1 /kern
parent90fd42c78fc54ec81a8979d8cbcc12350cf2ec01 (diff)
kern/intr: send EOI after interrupt handling
This seems to be required for the AT keyboard.
Diffstat (limited to 'kern')
-rw-r--r--kern/intr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/intr.c b/kern/intr.c
index ecc2edf2..2bbfb7c1 100644
--- a/kern/intr.c
+++ b/kern/intr.c
@@ -416,8 +416,6 @@ intr_handle(unsigned int intr)
goto out;
}
- intr_entry_eoi(entry, intr);
-
list_for_each_entry(&entry->handlers, handler, node) {
error = intr_handler_run(handler);
@@ -426,6 +424,8 @@ intr_handle(unsigned int intr)
}
}
+ intr_entry_eoi(entry, intr);
+
out:
spinlock_unlock(&entry->lock);
}