From: Ralf Baechle Date: Sat, 17 Mar 2007 16:21:28 +0000 (+0000) Subject: [MIPS] VI: TRACE_IRQS_OFF clobbers $v0, so save & restore around call. X-Git-Tag: v2.6.21-rc5~52^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3644350f4105a9b55fbfc6bbba567b79cdf72a;p=linux-2.6 [MIPS] VI: TRACE_IRQS_OFF clobbers $v0, so save & restore around call. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S index aacd4a005c..c921cb7c19 100644 --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S @@ -220,7 +220,17 @@ NESTED(except_vec_vi_handler, 0, sp) _ehb #endif /* CONFIG_MIPS_MT_SMTC */ CLI +#ifdef CONFIG_TRACE_IRQFLAGS + move s0, v0 +#ifdef CONFIG_MIPS_MT_SMTC + move s1, a0 +#endif TRACE_IRQS_OFF +#ifdef CONFIG_MIPS_MT_SMTC + move a0, s1 +#endif + move v0, s0 +#endif LONG_L s0, TI_REGS($28) LONG_S sp, TI_REGS($28)