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:
07961ac
)
MIPS: Unbreak function tracer for 64-bit kernel.
author
David Daney
<
[email protected]
>
Tue, 2 Apr 2013 22:59:29 +0000
(22:59 +0000)
committer
Ralf Baechle
<
[email protected]
>
Fri, 5 Apr 2013 13:10:22 +0000
(15:10 +0200)
Commit
58b69401c797
[MIPS: Function tracer: Fix broken function tracing]
completely broke the function tracer for 64-bit kernels. The symptom is
a system hang very early in the boot process.
The fix: Remove/fix $sp adjustments for 64-bit case.
Signed-off-by: David Daney <
[email protected]
>
Cc:
[email protected]
Cc: Al Cooper <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
# 3.8.x
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/kernel/mcount.S
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/mcount.S
b/arch/mips/kernel/mcount.S
index 1658676733576e74867347f0f7d122df0c5a023e..33d067148e61ba6d1526529ef735b24f2c3017c3 100644
(file)
--- a/
arch/mips/kernel/mcount.S
+++ b/
arch/mips/kernel/mcount.S
@@
-46,10
+46,9
@@
PTR_L a5, PT_R9(sp)
PTR_L a6, PT_R10(sp)
PTR_L a7, PT_R11(sp)
-#else
- PTR_ADDIU sp, PT_SIZE
#endif
-.endm
+ PTR_ADDIU sp, PT_SIZE
+ .endm
.macro RETURN_BACK
jr ra
@@
-68,7
+67,11
@@
NESTED(ftrace_caller, PT_SIZE, ra)
.globl _mcount
_mcount:
b ftrace_stub
- addiu sp,sp,8
+#ifdef CONFIG_32BIT
+ addiu sp,sp,8
+#else
+ nop
+#endif
/* When tracing is activated, it calls ftrace_caller+8 (aka here) */
lw t1, function_trace_stop