[4/4] ftrace,ppc: fix test of branch link

Message ID 20081117191059.843727934@goodmis.org
State Superseded, archived
Headers show

Commit Message

Steven Rostedt Nov. 17, 2008, 7:09 p.m.
Impact: fix positive failure of branch link on PPC

Paul Mackerras pointed out that the test to verify that the modify
code is a banch link is incorrect. It was testing the wrong bits.
This patch corrects the test.

Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
 arch/powerpc/kernel/ftrace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c
index 81e338c..cc901b1 100644
--- a/arch/powerpc/kernel/ftrace.c
+++ b/arch/powerpc/kernel/ftrace.c
@@ -131,7 +131,7 @@  static int test_24bit_addr(unsigned long ip, unsigned long addr)
 static int is_bl_op(unsigned int op)
-	return (op & 0xff000000) == 0x48000000;
+	return (op & 0xfc000003) == 0x48000001;
 static int test_offset(unsigned long offset)