OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5851fad
)
[MIPS] VI: TRACE_IRQS_OFF clobbers $v0, so save & restore around call.
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 17 Mar 2007 16:21:28 +0000
(16:21 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 19 Mar 2007 20:22:43 +0000
(20:22 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/genex.S
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/genex.S
b/arch/mips/kernel/genex.S
index
aacd4a0
..
c921cb7
100644
(file)
--- 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)