From 6d6cf0021680e4146f73f3b3c4bd12804da49aa7 Mon Sep 17 00:00:00 2001 Message-Id: <6d6cf0021680e4146f73f3b3c4bd12804da49aa7.1269526522.git.ameya.palande@nokia.com> In-Reply-To: <201cf4194940dd5e9f1c63575254fa11c9975be8.1269526522.git.ameya.palande@nokia.com> References: <201cf4194940dd5e9f1c63575254fa11c9975be8.1269526522.git.ameya.palande@nokia.com> From: Tony Lindgren Date: Tue, 19 Jan 2010 16:42:12 +0100 Subject: [PATCH 2/4] ARM: 5885/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. [ameya.palande@nokia.com: backported from 2.6.33] Signed-off-by: Tony Lindgren Signed-off-by: Russell King Signed-off-by: Ameya Palande --- arch/arm/mm/mmu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 9ad6413..6aa8841 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -953,4 +953,6 @@ void setup_mm_for_reboot(char mode) pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1))); flush_pmd_entry(pmd); } + + local_flush_tlb_all(); } -- 1.6.3.3