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
This commit is contained in:
parent
d1b83f0f63
commit
bdea8bb163
@ -41,7 +41,7 @@ static inline unsigned long arch_local_irq_save(void)
|
||||
" .set push \n"
|
||||
" .set reorder \n"
|
||||
" .set noat \n"
|
||||
#if defined(CONFIG_CPU_LOONGSON3)
|
||||
#if defined(CONFIG_CPU_LOONGSON3) || defined (CONFIG_CPU_LOONGSON1)
|
||||
" mfc0 %[flags], $12 \n"
|
||||
" di \n"
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user