Use correct spl mask.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after:	1 day
This commit is contained in:
Yoshihiro Takahashi 2003-02-10 13:31:49 +00:00
parent 6ced08bfa6
commit 46c71b8146
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110644
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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