diff options
author | nyan <nyan@FreeBSD.org> | 2003-02-10 13:31:49 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2003-02-10 13:31:49 +0000 |
commit | 15498f1825ef9fc89467f53960cd35a18535078a (patch) | |
tree | 8746e7e2d2cfd730c8c52ef869c95c09b15914b8 /sys/dev/snc | |
parent | 8638b961ca051972aa17ca0fd476f16998b984a0 (diff) | |
download | FreeBSD-src-15498f1825ef9fc89467f53960cd35a18535078a.zip FreeBSD-src-15498f1825ef9fc89467f53960cd35a18535078a.tar.gz |
Use correct spl mask.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after: 1 day
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 0721853..bb92c96 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 2431bb7..fcc6a22 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 |