Skip to contentSkip to conversation

arm: Flush TLB entries in setup_mm_for_reboot()

PATCH New Tony Lindgren 1 participant 1 message Dec 19, 2009 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Flush TLB entries in setup_mm_for_reboot()

We need to do that if we tinker with the MMU entries.

This fixes the occasional bug with kexec where the new fails to uncompress with "crc error". Most likely at least kexec on v6 and v7 need this fix.

arch/arm/mm/mmu.c +2 -0
index 8c7fbd1..a311080 100644
@@ -1068,4 +1068,6 @@ void setup_mm_for_reboot(char mode)
 		pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1)));
 		flush_pmd_entry(pmd);
 	}
+
+	local_flush_tlb_all();
 }

--jRHKVT23PllUwdXP--