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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user