summaryrefslogtreecommitdiff
path: root/kern/intr.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-28 20:03:49 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-28 20:03:49 +0200
commitcebac3e7574d2772e98775dd03c23b8118a6c807 (patch)
tree19c249479683e995cbd99b64b46ff7e96185eba4 /kern/intr.c
parent3bdbab08f6d21f71a69ad3ba317b27ed816ccd9b (diff)
kern/intr: route all interrupts to BSP
APIC support needs to be improved before interrupts can be routed to any processor.
Diffstat (limited to 'kern/intr.c')
-rw-r--r--kern/intr.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/kern/intr.c b/kern/intr.c
index 2bbfb7c..fe69e3e 100644
--- a/kern/intr.c
+++ b/kern/intr.c
@@ -85,17 +85,15 @@ static struct list intr_ctls;
static struct kmem_cache intr_handler_cache;
-/*
- * Next processor to route interrupts to.
- *
- * TODO Replace the simple current round-robin policy with a better one.
- */
-static unsigned int intr_next_cpu;
-
static unsigned int
intr_select_cpu(void)
{
- return atomic_fetch_add(&intr_next_cpu, 1, ATOMIC_RELAXED) % cpu_count();
+ /*
+ * TODO Interrupt routing.
+ * Although the interface supports it, there are currently problems
+ * with the I/O APIC that need to be solved first.
+ */
+ return 0;
}
static int