Skip to content

Commit bdea8bb

Browse files
FlyGoatpaulburton
authored andcommitted
MIPS: Loongson32: workaround di issue
GS232 core used in Loongson-1 processors has a bug that di instruction doesn't save the irqflag immediately. Workaround by set irqflag in CP0 before di instructions as same as Loongson-3. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: keguang.zhang@gmail.com
1 parent d1b83f0 commit bdea8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/include/asm/irqflags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static inline unsigned long arch_local_irq_save(void)
4141
" .set push \n"
4242
" .set reorder \n"
4343
" .set noat \n"
44-
#if defined(CONFIG_CPU_LOONGSON3)
44+
#if defined(CONFIG_CPU_LOONGSON3) || defined (CONFIG_CPU_LOONGSON1)
4545
" mfc0 %[flags], $12 \n"
4646
" di \n"
4747
#else

0 commit comments

Comments
 (0)