regression: test serial port r/w.
[lunaix-os.git] / lunaix-os / hal / intc.c
1 #include <hal/intc.h>
2 #include <lunaix/spike.h>
3
4 #include <sys/vectors.h>
5
6 struct intc_context arch_intc_ctx;
7
8 void
9 intc_irq_attach(int irq, int iv, cpu_t dest, u32_t flags)
10 {
11     arch_intc_ctx.irq_attach(&arch_intc_ctx, irq, iv, dest, flags);
12 }
13
14 void
15 intc_notify_eoi(cpu_t id, int iv)
16 {
17     arch_intc_ctx.notify_eoi(&arch_intc_ctx, id, iv);
18 }
19
20 void
21 intc_notify_eos(cpu_t id)
22 {
23     intc_notify_eoi(id, LUNAIX_SCHED);
24 }