From 643c5d87dd8b3f66ee133486a75bdd25d9f34ce1 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Tue, 10 Nov 2015 10:27:14 +0300 Subject: MIPS: avoid excessive exception This commit clears ERL (ERror Level) flag on start. If this flag is set then we get 'TLB miss on load or ifetch' just after return from exception. Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/include/asm/pbl_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/mips/include/asm/pbl_macros.h') diff --git a/arch/mips/include/asm/pbl_macros.h b/arch/mips/include/asm/pbl_macros.h index 681b40a305..c4ae6a2417 100644 --- a/arch/mips/include/asm/pbl_macros.h +++ b/arch/mips/include/asm/pbl_macros.h @@ -145,7 +145,7 @@ copy_loop_exit: .set push .set noreorder mfc0 k0, CP0_STATUS - li k1, ~ST0_IE + li k1, ~(ST0_ERL | ST0_IE) and k0, k1 mtc0 k0, CP0_STATUS .set pop -- cgit v1.2.3