Rev 1258 | Rev 1293 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1258 | Rev 1281 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | #include <mm/page.h> |
33 | #include <mm/page.h> |
34 | #include <memstr.h> |
34 | #include <memstr.h> |
35 | #include <debug.h> |
35 | #include <debug.h> |
36 | #include <ipc/ipc.h> |
36 | #include <ipc/ipc.h> |
37 | #include <ipc/sysipc.h> |
37 | #include <ipc/sysipc.h> |
- | 38 | #include <ipc/irq.h> |
|
38 | #include <ipc/ipcrsc.h> |
39 | #include <ipc/ipcrsc.h> |
39 | #include <arch/interrupt.h> |
40 | #include <arch/interrupt.h> |
40 | 41 | ||
41 | #include <print.h> |
42 | #include <print.h> |
42 | #include <arch.h> |
43 | #include <arch.h> |
Line 475... | Line 476... | ||
475 | STRUCT_TO_USPACE(calldata, &call->data); |
476 | STRUCT_TO_USPACE(calldata, &call->data); |
476 | return (__native)call; |
477 | return (__native)call; |
477 | } |
478 | } |
478 | 479 | ||
479 | /** Connect irq handler to task */ |
480 | /** Connect irq handler to task */ |
480 | __native sys_ipc_register_irq(__native irq) |
481 | __native sys_ipc_register_irq(__native irq, irq_code_t *ucode) |
481 | { |
482 | { |
482 | if (irq >= IRQ_COUNT) |
483 | if (irq >= IRQ_COUNT) |
483 | return -ELIMIT; |
484 | return -ELIMIT; |
484 | 485 | ||
485 | irq_ipc_bind_arch(irq); |
486 | irq_ipc_bind_arch(irq); |
- | 487 | ||
486 | return ipc_irq_register(&TASK->answerbox, irq); |
488 | return ipc_irq_register(&TASK->answerbox, irq, ucode); |
487 | } |
489 | } |
488 | 490 | ||
489 | /* Disconnect irq handler from task */ |
491 | /* Disconnect irq handler from task */ |
490 | __native sys_ipc_unregister_irq(__native irq) |
492 | __native sys_ipc_unregister_irq(__native irq) |
491 | { |
493 | { |