mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 04:46:27 +08:00
if_smc: Fix for level-triggered interrupts
This commit is contained in:
@@ -809,6 +809,12 @@ smc_intr(void *context)
|
|||||||
struct smc_softc *sc;
|
struct smc_softc *sc;
|
||||||
|
|
||||||
sc = (struct smc_softc *)context;
|
sc = (struct smc_softc *)context;
|
||||||
|
#ifdef __rtems__
|
||||||
|
SMC_LOCK(sc);
|
||||||
|
smc_select_bank(sc, 2);
|
||||||
|
smc_write_1(sc, MSK, 0);
|
||||||
|
SMC_UNLOCK(sc);
|
||||||
|
#endif /* __rtems__ */
|
||||||
taskqueue_enqueue_fast(sc->smc_tq, &sc->smc_intr);
|
taskqueue_enqueue_fast(sc->smc_tq, &sc->smc_intr);
|
||||||
return (FILTER_HANDLED);
|
return (FILTER_HANDLED);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user