From: Timur Tabi Date: Mon, 31 Oct 2011 18:30:43 +0000 (-0500) Subject: powerpc/85xx: add some missing sync instructions in the CCSR relocation code X-Git-Tag: v2011.12-rc1~222^2^2~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=452ad61c3feeffbf2b5ff74f0a6797af3ba4882c;p=u-boot powerpc/85xx: add some missing sync instructions in the CCSR relocation code Calls to tlbwe and tlbsx should be preceded with an isync/msync pair. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/cpu/mpc85xx/start.S b/arch/powerpc/cpu/mpc85xx/start.S index 275accca5b..e519f35d9a 100644 --- a/arch/powerpc/cpu/mpc85xx/start.S +++ b/arch/powerpc/cpu/mpc85xx/start.S @@ -352,6 +352,8 @@ purge_old_ccsr_tlb: li r1, 0 mtspr MAS6, r1 /* Search the current address space and PID */ + isync + msync tlbsx 0, r8 mfspr r1, MAS1 andis. r2, r1, MAS1_VALID@h /* Check for the Valid bit */ @@ -359,6 +361,8 @@ purge_old_ccsr_tlb: rlwinm r1, r1, 0, 1, 31 /* Clear Valid bit */ mtspr MAS1, r1 + isync + msync tlbwe 1: