From 6a265aba302c924ae686042f5cf363904fe5bc24 Mon Sep 17 00:00:00 2001 From: Takuma Ueba Date: Mon, 23 Apr 2018 13:27:33 +0900 Subject: [PATCH] powerpc: mpc85xx: Improve Work-around for Erratum A005125 Work-around for Erratum A005125 must be applied to all cores. Signed-off-by: Yoshihisa Morizumi Signed-off-by: Takuma Ueba Reviewed-by: York Sun --- arch/powerpc/cpu/mpc85xx/release.S | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/cpu/mpc85xx/release.S b/arch/powerpc/cpu/mpc85xx/release.S index 5d212f35b5..d37e1ccf1e 100644 --- a/arch/powerpc/cpu/mpc85xx/release.S +++ b/arch/powerpc/cpu/mpc85xx/release.S @@ -26,6 +26,13 @@ .globl __secondary_start_page .align 12 __secondary_start_page: +#ifdef CONFIG_SYS_FSL_ERRATUM_A005125 + msync + isync + mfspr r3, SPRN_HDBCR0 + oris r3, r3, 0x0080 + mtspr SPRN_HDBCR0, r3 +#endif /* First do some preliminary setup */ lis r3, HID0_EMCP@h /* enable machine check */ #ifndef CONFIG_E500MC -- 2.25.1