powerpc: Prevent infinite loop in moea_sync_icache()

This applies r344049 to the 32-bit pmap.

Reported by:	Mark Millard <marklmi_yahoo.com>
This commit is contained in:
Justin Hibbits 2020-01-10 04:13:16 +00:00
parent d2b6a2ff1e
commit a11dc32ebc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356595

View File

@ -2684,7 +2684,7 @@ moea_sync_icache(mmu_t mmu, pmap_t pm, vm_offset_t va, vm_size_t sz)
PMAP_LOCK(pm);
while (sz > 0) {
lim = round_page(va);
lim = round_page(va + 1);
len = MIN(lim - va, sz);
pvo = moea_pvo_find_va(pm, va & ~ADDR_POFF, NULL);
if (pvo != NULL) {