mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
MFNetBSD: revision 1.129
date: 2002/09/29 20:58:25; author: augustss; Add some spl calls to protect critical regions. From kern/18440, Takeshi Nakayama. (No functional change on FreeBSD).
This commit is contained in:
parent
69e07da0ff
commit
99112dddf2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117580
@ -3,6 +3,8 @@
|
||||
|
||||
/* Also, already ported:
|
||||
* $NetBSD: ohci.c,v 1.127 2002/08/07 20:03:19 augustss Exp $
|
||||
* $NetBSD: ohci.c,v 1.128 2002/09/27 15:37:35 provos Exp $
|
||||
* $NetBSD: ohci.c,v 1.129 2002/09/29 20:58:25 augustss Exp $
|
||||
* $NetBSD: ohci.c,v 1.138 2003/02/08 03:32:50 ichiro Exp $
|
||||
* $NetBSD: ohci.c,v 1.140 2003/05/13 04:42:00 gson Exp $
|
||||
*/
|
||||
@ -637,6 +639,7 @@ ohci_alloc_sitd(ohci_softc_t *sc)
|
||||
OHCI_ITD_ALIGN, &dma);
|
||||
if (err)
|
||||
return (NULL);
|
||||
s = splusb();
|
||||
for(i = 0; i < OHCI_SITD_CHUNK; i++) {
|
||||
offs = i * OHCI_SITD_SIZE;
|
||||
sitd = KERNADDR(&dma, offs);
|
||||
@ -644,6 +647,7 @@ ohci_alloc_sitd(ohci_softc_t *sc)
|
||||
sitd->nextitd = sc->sc_freeitds;
|
||||
sc->sc_freeitds = sitd;
|
||||
}
|
||||
splx(s);
|
||||
}
|
||||
|
||||
s = splusb();
|
||||
@ -1255,8 +1259,11 @@ void
|
||||
ohci_rhsc_enable(void *v_sc)
|
||||
{
|
||||
ohci_softc_t *sc = v_sc;
|
||||
int s;
|
||||
|
||||
s = splhardusb();
|
||||
ohci_rhsc_able(sc, 1);
|
||||
splx(s);
|
||||
}
|
||||
|
||||
#ifdef USB_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user