Set the bits in the mask from the left to the right, not backwards.

Submitted by:	 Coleman Kane <cokane@one.net>
This commit is contained in:
Brian Feldman 2000-03-19 19:21:37 +00:00
parent 338c4376cf
commit c6e0c95d30
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58304

View file

@ -90,7 +90,7 @@ k6_mrmake(struct mem_range_desc *desc, u_int32_t *mtrr) {
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;