rtl8139exp: lock the softc when re-enabling interrupts so we don't in the middle of a disable/enable interrupts operation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21102 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-05-10 06:38:20 +00:00
parent 18c80ff054
commit d1c9c9d4b4
@@ -21,5 +21,7 @@ void
HAIKU_REENABLE_INTERRUPTS(device_t dev)
{
struct rl_softc *sc = device_get_softc(dev);
RL_LOCK(sc);
HAIKU_PROTECT_INTR_REGISTER(CSR_WRITE_2(sc, RL_IMR, RL_INTRS));
RL_UNLOCK(sc);
}