MIPS: R2: Fix local_irq_save() local_irq_restore uses di which saves the whole status content, not just the IE bit resulting in local_irq_restore() to fail. This only happens if both CONFIG_CPU_MIPSR2 and CONFIG_IRQ_CPU are enabled. Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Maxime Bizon and committed by
15265251 d4ea001d

+1
+1
include/asm-mips/interrupt.h
··· 93 93 " .set noat \n" 94 94 #ifdef CONFIG_CPU_MIPSR2 95 95 " di \\result \n" 96 + " andi \\result, 1 \n" 96 97 #else 97 98 " mfc0 \\result, $12 \n" 98 99 " ori $1, \\result, 1 \n"