1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
3 #include <proto/exec.h>
5 #include <kernel_base.h>
6 #include <kernel_interrupts.h>
7 #include <kernel_objects.h>
9 /*****************************************************************************
12 #include <proto/kernel.h>
14 AROS_LH1(void, KrnRemIRQHandler
,
17 AROS_LHA(void *, handle
, A0
),
20 struct KernelBase
*, KernelBase
, 8, Kernel
)
23 Remove previously installed hardware IRQ handler
26 handle - an opaque handler returned by KrnAddIRQHandler()
42 ******************************************************************************/
46 struct IntrNode
*h
= handle
;
47 uint8_t irq
= h
->in_nr
;
49 if (h
&& (h
->in_type
== it_interrupt
))
55 if (IsListEmpty(&KernelBase
->kb_Interrupts
[irq
]))
57 ictl_disable_irq(irq
, KernelBase
);