NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/48343: patch for re(4) to change link address of 8111E_VL



Sorry, KASSERT condition was inverted.
I simply replaced BUG_ON() macro and did not test with DIAGNOSTIC.

--- etc/remac.diff.orig 2013-10-15 20:02:02.000000000 +0900
+++ etc/remac.diff      2013-11-09 19:54:19.000000000 +0900
@@ -37,7 +37,7 @@
 +re_eri_write(struct rtk_softc *sc, int addr, uint32_t mask,
 +                        uint32_t val, int type)
 +{
-+      KASSERT((addr & 3) || (mask == 0));
++      KASSERT(!((addr & 3) || (mask == 0)));
 +      CSR_WRITE_4(sc, RTK_ERIDR, val);
 +      CSR_WRITE_4(sc, RTK_ERIAR, RTK_ERIAR_WRITE_CMD | type | mask | addr);
 +

--
t-hash



Home | Main Index | Thread Index | Old Index