From 43dca75ef768d2d201f95f0c9b434437b7d079b1 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Fri, 20 Feb 2009 19:49:44 +0000 Subject: - use separate #ifdef __rtems__ branch when using bus_setup_intr() because APIs are really different. - must not use INTR_FAST anymore since this will (deliberately) produce a compile-time error (see ) --- bsd_eth_drivers/if_re/if_re.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bsd_eth_drivers/if_re/if_re.c') diff --git a/bsd_eth_drivers/if_re/if_re.c b/bsd_eth_drivers/if_re/if_re.c index 8db06b0..b9194d1 100644 --- a/bsd_eth_drivers/if_re/if_re.c +++ b/bsd_eth_drivers/if_re/if_re.c @@ -1485,8 +1485,13 @@ re_attach(dev) #endif /* Hook interrupt last to avoid having to lock softc */ +#ifndef __rtems__ error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE | - INTR_FAST, re_intr, NULL, sc, &sc->rl_intrhand); + INTR_FAST, re_intr, sc, &sc->rl_intrhand); +#else + error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE, + re_intr, NULL, sc, &sc->rl_intrhand); +#endif if (error) { device_printf(dev, "couldn't set up irq\n"); ether_ifdetach(ifp); -- cgit v1.2.3