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:
parent
338c4376cf
commit
c6e0c95d30
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user