OSDN Git Service

MIPS: Loongson32: workaround di issue
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 22 Jan 2019 13:04:11 +0000 (21:04 +0800)
committerPaul Burton <paul.burton@mips.com>
Wed, 23 Jan 2019 01:32:01 +0000 (17:32 -0800)
commitbdea8bb16345aa62622bfe199f9e2ee9a0daa6d9
tree2a2cc3dd0f3b79616010aa1157d00f55315693fe
parentd1b83f0f631ba58e444773a554648f9006d911e8
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
arch/mips/include/asm/irqflags.h