forked from Imagelibrary/rtems
csb350 - Eliminate any set_vector() remnants
This commit is contained in:
@@ -44,11 +44,6 @@ int rtems_au1x00_emac_attach(struct rtems_bsdnet_ifconfig *config,
|
||||
#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
|
||||
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_au1x00_emac_attach
|
||||
|
||||
/* functions */
|
||||
|
||||
rtems_isr_entry set_vector(
|
||||
rtems_isr_entry, rtems_vector_number, int );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -337,9 +337,21 @@ void au1x00_emac_init(void *arg)
|
||||
|
||||
/* install the interrupt handler */
|
||||
if (sc->unitnumber == 0) {
|
||||
set_vector(au1x00_emac_isr, AU1X00_IRQ_MAC0, 1);
|
||||
rtems_interrupt_handler_install(
|
||||
AU1X00_IRQ_MAC0,
|
||||
"NIC0",
|
||||
0,
|
||||
(rtems_interrupt_handler)au1x00_emac_isr,
|
||||
NULL
|
||||
);
|
||||
} else {
|
||||
set_vector(au1x00_emac_isr, AU1X00_IRQ_MAC1, 1);
|
||||
rtems_interrupt_handler_install(
|
||||
AU1X00_IRQ_MAC1,
|
||||
"NIC1",
|
||||
0,
|
||||
(rtems_interrupt_handler)au1x00_emac_isr,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
AU1X00_IC_MASKCLR(sc->int_ctrlr) = sc->int_mask;
|
||||
au_sync();
|
||||
|
||||
Reference in New Issue
Block a user