summaryrefslogtreecommitdiff
path: root/libddekit
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-02-27 14:19:29 +0100
committerZheng Da <zhengda1936@gmail.com>2010-02-27 14:19:29 +0100
commit5b14fbc2aeedc2501b032d8ea6b4b68eafaf321b (patch)
tree58ce5eea58d4257dec0bc8c3670eb5047dd19083 /libddekit
parent1c3c575b2324f666b816164afe3a100896b81840 (diff)
Add `flags` for interrupt registration.
Diffstat (limited to 'libddekit')
-rw-r--r--libddekit/interrupt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libddekit/interrupt.c b/libddekit/interrupt.c
index 8590a85c..09117732 100644
--- a/libddekit/interrupt.c
+++ b/libddekit/interrupt.c
@@ -92,10 +92,11 @@ static void intloop(void *arg)
if (ret)
error (0, ret, "thread_priority");
- // TODO I should give another parameter to show whether
- // the interrupt can be shared.
+ // TODO the flags for shared irq should be indicated by params->shared.
+ // Be careful. For now, we must use shared irq.
+ // Otherwise, the interrupt handler cannot be installed in the kernel.
ret = device_intr_notify (master_device, params->irq,
- 0, delivery_port,
+ 0, 0x04000000, delivery_port,
MACH_MSG_TYPE_MAKE_SEND);
if (!ret) {
/* inform thread creator of error */