From: David Daney Date: Tue, 30 Aug 2011 13:45:20 +0000 (-0700) Subject: MIPS: Don't clobber CP0_STATUS value for CONFIG_MIPS_MT_SMTC X-Git-Tag: upstream/snapshot3+hdmi~8987^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d968275921f9fa7fbc602ac6618ffec6a062ee3c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git MIPS: Don't clobber CP0_STATUS value for CONFIG_MIPS_MT_SMTC Reported-by: Edgar E. Iglesias Signed-off-by: David Daney Patchwork: https://patchwork.linux-mips.org/patch/2753/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/stackframe.h b/arch/mips/include/asm/stackframe.h index b4ba244..cb41af5 100644 --- a/arch/mips/include/asm/stackframe.h +++ b/arch/mips/include/asm/stackframe.h @@ -195,9 +195,9 @@ * to cover the pipeline delay. */ .set mips32 - mfc0 v1, CP0_TCSTATUS + mfc0 k0, CP0_TCSTATUS .set mips0 - LONG_S v1, PT_TCSTATUS(sp) + LONG_S k0, PT_TCSTATUS(sp) #endif /* CONFIG_MIPS_MT_SMTC */ LONG_S $4, PT_R4(sp) LONG_S $5, PT_R5(sp)