Changeset 43dca75 in libbsdport


Ignore:
Timestamp:
Feb 20, 2009, 7:49:44 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
1039919
Parents:
e9cc6be
Message:
  • 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>)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/if_re/if_re.c

    re9cc6be r43dca75  
    14861486
    14871487        /* Hook interrupt last to avoid having to lock softc */
     1488#ifndef __rtems__
    14881489        error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE |
    1489             INTR_FAST, re_intr, NULL, sc, &sc->rl_intrhand);
     1490            INTR_FAST, re_intr, sc, &sc->rl_intrhand);
     1491#else
     1492        error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE,
     1493            re_intr, NULL, sc, &sc->rl_intrhand);
     1494#endif
    14901495        if (error) {
    14911496                device_printf(dev, "couldn't set up irq\n");
Note: See TracChangeset for help on using the changeset viewer.