Rev 1922 | Rev 2009 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1922 | Rev 1923 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | #include <interrupt.h> |
37 | #include <interrupt.h> |
| 38 | #include <ddi/irq.h> |
38 | #include <ddi/irq.h> |
| 39 | #include <typedefs.h> |
39 | #include <typedefs.h> |
| 40 | #include <arch/types.h> |
40 | #include <arch/types.h> |
| 41 | #include <debug.h> |
41 | #include <debug.h> |
| 42 | #include <ipc/sysipc.h> |
- | |
| 43 | #include <arch/asm.h> |
42 | #include <arch/asm.h> |
| 44 | #include <arch/barrier.h> |
43 | #include <arch/barrier.h> |
| 45 | #include <print.h> |
44 | #include <print.h> |
| 46 | #include <arch.h> |
45 | #include <arch.h> |
| 47 | #include <mm/tlb.h> |
46 | #include <mm/tlb.h> |
| 48 | #include <config.h> |
47 | #include <config.h> |
| 49 | #include <synch/spinlock.h> |
48 | #include <synch/spinlock.h> |
| 50 | 49 | ||
| 51 | /* |
- | |
| 52 | * To be removed once we get rid of the dependency in ipc_irq_bind_arch(). |
- | |
| 53 | */ |
- | |
| 54 | #include <arch/drivers/kbd.h> |
- | |
| 55 | #include <genarch/kbd/z8530.h> |
- | |
| 56 | - | ||
| 57 | /** Register Interrupt Level Handler. |
50 | /** Register Interrupt Level Handler. |
| 58 | * |
51 | * |
| 59 | * @param n Interrupt Level (1 - 15). |
52 | * @param n Interrupt Level (1 - 15). |
| 60 | * @param name Short descriptive string. |
53 | * @param name Short descriptive string. |
| 61 | * @param f Handler. |
54 | * @param f Handler. |
| Line 65... | Line 58... | ||
| 65 | ASSERT(n >= IVT_FIRST && n <= IVT_ITEMS); |
58 | ASSERT(n >= IVT_FIRST && n <= IVT_ITEMS); |
| 66 | 59 | ||
| 67 | exc_register(n - 1, name, f); |
60 | exc_register(n - 1, name, f); |
| 68 | } |
61 | } |
| 69 | 62 | ||
| 70 | /* Reregister irq to be IPC-ready */ |
- | |
| 71 | void irq_ipc_bind_arch(unative_t irq) |
- | |
| 72 | { |
- | |
| 73 | #ifdef CONFIG_Z8530 |
- | |
| 74 | if (kbd_type == KBD_Z8530) |
- | |
| 75 | z8530_belongs_to_kernel = false; |
- | |
| 76 | #endif |
- | |
| 77 | } |
- | |
| 78 | - | ||
| 79 | /** Process hardware interrupt. |
63 | /** Process hardware interrupt. |
| 80 | * |
64 | * |
| 81 | * @param n Ignored. |
65 | * @param n Ignored. |
| 82 | * @param istate Ignored. |
66 | * @param istate Ignored. |
| 83 | */ |
67 | */ |