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:
fed8393
)
powerpc: Make ftrace endian-safe.
author
Eugene Surovegin
<ebs@ebshome.net>
Fri, 20 Sep 2013 18:42:21 +0000
(11:42 -0700)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:53:26 +0000
(16:53 +1100)
Signed-off-by: Eugene Surovegin <surovegin@google.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ftrace.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/ftrace.c
b/arch/powerpc/kernel/ftrace.c
index
1fb7856
..
9b27b29
100644
(file)
--- a/
arch/powerpc/kernel/ftrace.c
+++ b/
arch/powerpc/kernel/ftrace.c
@@
-174,7
+174,11
@@
__ftrace_make_nop(struct module *mod,
pr_devel(" %08x %08x\n", jmp[0], jmp[1]);
+#ifdef __LITTLE_ENDIAN__
+ ptr = ((unsigned long)jmp[1] << 32) + jmp[0];
+#else
ptr = ((unsigned long)jmp[0] << 32) + jmp[1];
+#endif
/* This should match what was called */
if (ptr != ppc_function_entry((void *)addr)) {