summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/cs/if_csreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/cs/if_csreg.h b/sys/dev/cs/if_csreg.h
index 114800e..be41e5c 100644
--- a/sys/dev/cs/if_csreg.h
+++ b/sys/dev/cs/if_csreg.h
@@ -539,6 +539,8 @@
static __inline uint16_t
cs_inw(struct cs_softc *sc, int off)
{
+ if (off & 1)
+ device_printf(sc->dev, "BUG: inw to an odd address.\n");
return ((inb(sc->nic_addr + off) & 0xff) |
(inb(sc->nic_addr + off + 1) << 8));
}
OpenPOWER on IntegriCloud