summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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