* shared/irq/irq_supp.h: removed stray '*/'. Removed
inclusion of <stdlib.h> which is unnecessary and broke
if_dc in an obscure way (due to malloc/free redefinition
in the networking code).
* shared/irq/i8259.c, shared/irq/irq.h, shared/irq/irq_supp.h,
shared/irq/openpic_i8259_irq.c: BSP_disable_irq_at_pic(),
openpic_disable_irq(), BSP_irq_disable_at_i8259s() now return
0/1 if irq was disabled/enabled prior to disabling.
irq_supp.h now exports a inline helper routine for scanning
a list of shared handlers; to be used by PIC drivers.
* shared/irq/irq_supp.h: Make sure BSP_SHARED_HANDLER_SUPPORT
is set. The shared irq manager supports shared interrupts
(but requires also that the PIC-driver supports them by
traversing the list of shared handlers).
Declare C_dispatch_irq_handler() which must be defined
(like the other routines declared in this header) by the
PIC-driver.
* shared/irq/irq.h, shared/irq/irq.c, shared/irq/irq_init.c,
shared/irq/irq_supp.h (added):
Removed 'is_processor_irq()' from irq.c; the BSP routines
BSP_enable_irq_at_pic()/BSP_disable_irq_at_pic() are required
to ignore processor irqs anyways. Removed
all BSP-defined constants from irq.c. This makes irq.c (almost)
binary-compatible among BSPs (ultimate goal is making 'shared'
a library).
Added a header (irq_supp.h) defining the interface between
the generic interrupt manager (irq.c) and the routines it
requires to be supplied by the BSP (eventually, these
should go into rtems/irq.h).