diff options
author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-02-10 13:31:49 +0000 |
---|---|---|
committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2003-02-10 13:31:49 +0000 |
commit | 46c71b8146a4c8f0273ad2ea63ce4686e2ef2bfb (patch) | |
tree | 8746e7e2d2cfd730c8c52ef869c95c09b15914b8 /sys/dev/snc | |
parent | 6ced08bfa6bc773baae5d299e6161972f9a33fef (diff) | |
download | src-46c71b8146a4c8f0273ad2ea63ce4686e2ef2bfb.tar.gz src-46c71b8146a4c8f0273ad2ea63ce4686e2ef2bfb.zip |
Use correct spl mask.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after: 1 day
Notes
Notes:
svn path=/head/; revision=110644
Diffstat (limited to 'sys/dev/snc')
-rw-r--r-- | sys/dev/snc/dp83932.c | 6 | ||||
-rw-r--r-- | sys/dev/snc/dp83932var.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index 07218535535a..bb92c96cc440 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -256,7 +256,7 @@ sncioctl(ifp, cmd, data) { struct ifreq *ifr; struct snc_softc *sc = ifp->if_softc; - int s = splnet(), err = 0; + int s = splhardnet(), err = 0; int temp; switch (cmd) { @@ -398,7 +398,7 @@ sncinit(xsc) /* already running */ return; - s = splnet(); + s = splhardnet(); NIC_PUT(sc, SNCR_CR, CR_RST); /* DCR only accessable in reset mode! */ @@ -463,7 +463,7 @@ sncstop(sc) struct snc_softc *sc; { struct mtd *mtd; - int s = splnet(); + int s = splhardnet(); /* stick chip in reset */ NIC_PUT(sc, SNCR_CR, CR_RST); diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h index 2431bb704628..fcc6a2245284 100644 --- a/sys/dev/snc/dp83932var.h +++ b/sys/dev/snc/dp83932var.h @@ -34,7 +34,11 @@ #endif /* NetBSD Emulation */ +#ifdef __NetBSD__ +#define splhardnet splnet +#endif #ifdef __FreeBSD__ +#define splhardnet splimp #ifndef NBPG #define NBPG PAGE_SIZE #endif |