On 2020/7/29 04:51, Thomas Bogendoerfer wrote: > On Tue, Jul 28, 2020 at 06:06:55PM +0800, WANG Xuerui wrote: >> index a1b966f3578e..5fa87d4b5dca 100644 >> --- a/arch/mips/kernel/genex.S >> +++ b/arch/mips/kernel/genex.S >> @@ -498,6 +498,12 @@ NESTED(nmi_handler, PT_SIZE, sp) >> KMODE >> .endm >> >> + .macro __build_clear_gsexc >> + mfc0 a1, CP0_DIAGNOSTIC1 > this doesn't work when building for a legacy core: > > /local/tbogendoerfer/korg/linux/arch/mips/kernel/genex.S: Assembler messages: > /local/tbogendoerfer/korg/linux/arch/mips/kernel/genex.S:565: Error: invalid operands `mfc0 $5,$22,1' > > Thomas. > Sorry for not noticing this, native compilation on Loongson is slow so sometimes I skip build tests, and it was certainly wrong. I'll fix soon. I think I need to spend a few weekends to setup an amd64 CI for build-testing...