Skip to content

Commit d968275

Browse files
daviddaneyralfbaechle
authored andcommitted
MIPS: Don't clobber CP0_STATUS value for CONFIG_MIPS_MT_SMTC
Reported-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Signed-off-by: David Daney <david.daney@cavium.com> Patchwork: https://patchwork.linux-mips.org/patch/2753/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 465aaed commit d968275

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/include/asm/stackframe.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@
195195
* to cover the pipeline delay.
196196
*/
197197
.set mips32
198-
mfc0 v1, CP0_TCSTATUS
198+
mfc0 k0, CP0_TCSTATUS
199199
.set mips0
200-
LONG_S v1, PT_TCSTATUS(sp)
200+
LONG_S k0, PT_TCSTATUS(sp)
201201
#endif /* CONFIG_MIPS_MT_SMTC */
202202
LONG_S $4, PT_R4(sp)
203203
LONG_S $5, PT_R5(sp)

0 commit comments

Comments
 (0)