summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1993-11-14 23:53:32 +0000
committerache <ache@FreeBSD.org>1993-11-14 23:53:32 +0000
commitbfbb9f451bac81020c600159f7a89f68956f6c3b (patch)
tree397acfaa37e6680fe0b62e71381845b9536ae506
parent3e310493774010021ebd00799947e35a10500c39 (diff)
downloadFreeBSD-src-bfbb9f451bac81020c600159f7a89f68956f6c3b.zip
FreeBSD-src-bfbb9f451bac81020c600159f7a89f68956f6c3b.tar.gz
if netmask == 0, then the loopback code can do some really
bad things. workaround for this: if netmask == 0, set it to 0x8000, which is value used by splsoftclock
-rw-r--r--sys/amd64/isa/isa.c9
-rw-r--r--sys/i386/isa/isa.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index c98cc93..6da335c 100644
--- a/sys/amd64/isa/isa.c
+++ b/sys/amd64/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.6 1993/11/07 21:47:19 wollman Exp $
+ * $Id: isa.c,v 1.7 1993/11/09 02:12:36 alm Exp $
*/
/*
@@ -237,6 +237,13 @@ isa_configure() {
netmask |= ttymask;
ttymask |= netmask;
#endif
+ /* if netmask == 0, then the loopback code can do some really
+ * bad things.
+ * workaround for this: if netmask == 0, set it to 0x8000,
+ * which is value used by splsoftclock
+ */
+ if (netmask == 0)
+ netmask = 0x8000; /* same as for softclock from icu.s */
/* biomask |= ttymask ; can some tty devices use buffers? */
printf("biomask %x ttymask %x netmask %x\n", biomask, ttymask, netmask);
splnone();
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index c98cc93..6da335c 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.6 1993/11/07 21:47:19 wollman Exp $
+ * $Id: isa.c,v 1.7 1993/11/09 02:12:36 alm Exp $
*/
/*
@@ -237,6 +237,13 @@ isa_configure() {
netmask |= ttymask;
ttymask |= netmask;
#endif
+ /* if netmask == 0, then the loopback code can do some really
+ * bad things.
+ * workaround for this: if netmask == 0, set it to 0x8000,
+ * which is value used by splsoftclock
+ */
+ if (netmask == 0)
+ netmask = 0x8000; /* same as for softclock from icu.s */
/* biomask |= ttymask ; can some tty devices use buffers? */
printf("biomask %x ttymask %x netmask %x\n", biomask, ttymask, netmask);
splnone();
OpenPOWER on IntegriCloud