summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1998-09-17 00:20:19 +0000
committerJason Wright <jason@cvs.openbsd.org>1998-09-17 00:20:19 +0000
commitafddf4ad6c81732743a8afce87488f06ba8367d6 (patch)
tree711c00aca549af11b1a2915b57a283dddcf605e6
parent8cc781b6ee066753eb9d0bd7c7350df91430c7b8 (diff)
o missed ifmedia update
o make sure the led blinker doesn't have any extra bits
-rw-r--r--sys/arch/pmax/pmax/pmax_trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/pmax/pmax/pmax_trap.c b/sys/arch/pmax/pmax/pmax_trap.c
index 7985d186b5c..087763b6f7c 100644
--- a/sys/arch/pmax/pmax/pmax_trap.c
+++ b/sys/arch/pmax/pmax/pmax_trap.c
@@ -82,6 +82,7 @@
#include <sys/mbuf.h>
#include <netinet/in.h>
#include <net/if.h>
+#include <net/if_media.h>
#include <netinet/if_ether.h>
struct ifnet; struct ethercom;
@@ -799,7 +800,7 @@ pmax_errintr()
}
#if (NLED > 0)
*sysCSRPtr = ((csr & ~KN01_CSR_MBZ) & ~(KN01_CSR_LEDS_MASK))
- | led_current;
+ | (led_current & KN01_CSR_LEDS_MASK);
#else
*sysCSRPtr = (csr & ~KN01_CSR_MBZ) | 0xff;
#endif