diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-02-20 19:49:44 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-02-20 19:49:44 +0000 |
commit | 43dca75ef768d2d201f95f0c9b434437b7d079b1 (patch) | |
tree | 9c433d6186bb35caa67a9d9030c344853bcb0d49 /bsd_eth_drivers/if_re/if_re.c | |
parent | - detect use of INTR_FAST and produce a compile-time error with a (diff) | |
download | libbsdport-43dca75ef768d2d201f95f0c9b434437b7d079b1.tar.bz2 |
- 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 <sys/bus.h>)
Diffstat (limited to 'bsd_eth_drivers/if_re/if_re.c')
-rw-r--r-- | bsd_eth_drivers/if_re/if_re.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |