projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e624859
)
ARM: 5627/1: Fix restoring of lr at the end of mcount
author
Uwe Kleine-König
<
[email protected]
>
Wed, 29 Jul 2009 18:31:30 +0000
(19:31 +0100)
committer
Russell King
<
[email protected]
>
Thu, 30 Jul 2009 09:44:16 +0000
(10:44 +0100)
After ftrace_trace_function is called r1 is probably clobbered so don't
try to use its value for restoring.
This was introduced in v2.6.29~38^2~7
Signed-off-by: Uwe Kleine-König <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/kernel/entry-common.S
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/entry-common.S
b/arch/arm/kernel/entry-common.S
index 366e5097a41a4f535d1d24ddccab44f13580fb64..8c3de1a350b5dd85bdf06b79f1dab163cd305743 100644
(file)
--- a/
arch/arm/kernel/entry-common.S
+++ b/
arch/arm/kernel/entry-common.S
@@
-148,7
+148,7
@@
trace:
sub r0, r0, #MCOUNT_INSN_SIZE
mov lr, pc
mov pc, r2
-
mov lr, r1
@ restore lr
+
ldr lr, [fp, #-4]
@ restore lr
ldmia sp!, {r0-r3, pc}
#endif /* CONFIG_DYNAMIC_FTRACE */