summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include
diff options
context:
space:
mode:
authorYi Li <yi.li@analog.com>2009-09-15 09:24:31 +0000
committerMike Frysinger <vapier@gentoo.org>2009-09-16 22:10:52 -0400
commit5bf9cbef9972f851172391a37261b12bba63f733 (patch)
tree6ca84de9aea486b563c53a0a9f9be0950f74c990 /arch/blackfin/include
parent3b67d91b3e2c789952379f5157704c2162330492 (diff)
downloadop-kernel-dev-5bf9cbef9972f851172391a37261b12bba63f733.zip
op-kernel-dev-5bf9cbef9972f851172391a37261b12bba63f733.tar.gz
Blackfin: update ftrace for latest toolchain
The mcount support that was finally added to the Blackfin gcc port isn't exactly the same as what ftrace was developed against. Now that the final gcc version is in place, update the ftrace code to match. While updating this, fix the swapped arguments to the tracer (signature is (ip, parent_ip) while we were passing (parent_ip, ip)). Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r--arch/blackfin/include/asm/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/ftrace.h b/arch/blackfin/include/asm/ftrace.h
index 8643680..90c9b40 100644
--- a/arch/blackfin/include/asm/ftrace.h
+++ b/arch/blackfin/include/asm/ftrace.h
@@ -8,6 +8,6 @@
#ifndef __ASM_BFIN_FTRACE_H__
#define __ASM_BFIN_FTRACE_H__
-#define MCOUNT_INSN_SIZE 8 /* sizeof mcount call: LINK + CALL */
+#define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */
#endif
OpenPOWER on IntegriCloud