$NetBSD: patch-af,v 1.1 2001/01/17 23:57:53 jlam Exp $ --- module/k6_mem.c.orig Wed Jan 17 12:36:06 2001 +++ module/k6_mem.c @@ -89,7 +89,7 @@ return EOPNOTSUPP; for (bit = ffs(desc->mr_len >> 17) - 1; bit < 15; bit++) - len |= 1 << (14 - bit); + len |= 1 << bit; wc = (desc->mr_flags & MDF_WRITECOMBINE) ? 1 : 0; uc = (desc->mr_flags & MDF_UNCACHEABLE) ? 1 : 0;