Change some splusb() to splhardusb().

This commit is contained in:
augustss 2001-01-20 23:36:02 +00:00
parent 541fa6ecfa
commit f7dc96fe4c
2 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ohci.c,v 1.97 2000/12/31 14:29:54 augustss Exp $ */
/* $NetBSD: ohci.c,v 1.98 2001/01/20 23:36:03 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@ -948,7 +948,7 @@ ohci_power(int why, void *v)
ohci_dumpregs(sc);
#endif
s = splusb();
s = splhardusb();
switch (why) {
case PWR_SUSPEND:
case PWR_STANDBY:

View File

@ -1,4 +1,4 @@
/* $NetBSD: uhci.c,v 1.131 2000/12/29 01:24:56 augustss Exp $ */
/* $NetBSD: uhci.c,v 1.132 2001/01/20 23:36:02 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@ -688,7 +688,7 @@ uhci_power(int why, void *v)
int cmd;
int s;
s = splusb();
s = splhardusb();
cmd = UREAD2(sc, UHCI_CMD);
DPRINTF(("uhci_power: sc=%p, why=%d (was %d), cmd=0x%x\n",
@ -1207,10 +1207,9 @@ uhci_intr(void *arg)
}
if (ack) /* acknowledge the ints */
UWRITE2(sc, UHCI_STS, ack);
else /* nothing to acknowledge */
return (0);
if (!ack)
return (0); /* nothing to acknowledge */
UWRITE2(sc, UHCI_STS, ack); /* acknowledge the ints */
sc->sc_bus.no_intrs++;
usb_schedsoftintr(&sc->sc_bus);
@ -1511,7 +1510,7 @@ uhci_run(uhci_softc_t *sc, int run)
u_int16_t cmd;
run = run != 0;
s = splusb();
s = splhardusb();
DPRINTF(("uhci_run: setting run=%d\n", run));
cmd = UREAD2(sc, UHCI_CMD);
if (run)