2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 #include <kernel_base.h>
13 #include <kernel_interrupts.h>
14 #include <kernel_objects.h>
16 /*****************************************************************************
19 #include <proto/kernel.h>
21 AROS_LH1(void, KrnRemIRQHandler
,
24 AROS_LHA(void *, handle
, A0
),
27 struct KernelBase
*, KernelBase
, 8, Kernel
)
30 Remove previously installed hardware IRQ handler
33 handle - an opaque handler returned by KrnAddIRQHandler()
49 ******************************************************************************/
53 struct IntrNode
*h
= handle
;
54 uint8_t irq
= h
->in_nr
;
56 if (h
&& (h
->in_type
== it_interrupt
))
62 if (IsListEmpty(&KernelBase
->kb_Interrupts
[irq
]))
64 ictl_disable_irq(irq
, KernelBase
);