Fix a typo (move parenthesis to correct location in the line).
Before this, it would cause the one consumer of this API in powerpc usage (dev/dpaa) to set the PTE WIMG flags to empty instead of --M-, making the cache-enabled buffer portals non-coherent.
This commit is contained in:
parent
006aa95c01
commit
aa38c69b74
@ -2967,7 +2967,7 @@ mmu_booke_change_attr(mmu_t mmu, vm_offset_t addr, vm_size_t sz,
|
||||
for (va = addr; va < addr + sz; va += PAGE_SIZE) {
|
||||
pte = pte_find(mmu, kernel_pmap, va);
|
||||
*pte &= ~(PTE_MAS2_MASK << PTE_MAS2_SHIFT);
|
||||
*pte |= tlb_calc_wimg(PTE_PA(pte), mode << PTE_MAS2_SHIFT);
|
||||
*pte |= tlb_calc_wimg(PTE_PA(pte), mode) << PTE_MAS2_SHIFT;
|
||||
tlb0_flush_entry(va);
|
||||
}
|
||||
tlb_miss_unlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user