2 * Copyright (C) 2008 Imagination Technologies Ltd.
3 * Licensed under the GPL
7 #include <asm/ftrace.h>
10 #ifdef CONFIG_DYNAMIC_FTRACE
11 .global _mcount_wrapper
12 .type _mcount_wrapper,function
16 .global _ftrace_caller
17 .type _ftrace_caller,function
19 MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4
22 SUB D1Ar1,D1Ar1,#MCOUNT_INSN_SIZE
26 MOVT D1RtP,#HI(_ftrace_stub)
27 CALL D1RtP,#LO(_ftrace_stub)
28 GETL D0.4, D1RtP, [A0StP++#(-8)]
29 GETL D0Ar2, D1Ar1, [A0StP++#(-8)]
30 GETL D0Ar4, D1Ar3, [A0StP++#(-8)]
31 GETL D0Ar6, D1Ar5, [A0StP++#(-8)]
35 .global _mcount_wrapper
36 .type _mcount_wrapper,function
38 MSETL [A0StP], D0Ar6, D0Ar4, D0Ar2, D0.4
41 MOVT D0Re0,#HI(_ftrace_trace_function)
42 ADD D0Re0,D0Re0,#LO(_ftrace_trace_function)
44 MOVT D1Re0,#HI(_ftrace_stub)
45 ADD D1Re0,D1Re0,#LO(_ftrace_stub)
49 SUB D1Ar1,D1Ar1,#MCOUNT_INSN_SIZE
52 GETL D0.4, D1RtP, [A0StP++#(-8)]
53 GETL D0Ar2, D1Ar1, [A0StP++#(-8)]
54 GETL D0Ar4, D1Ar3, [A0StP++#(-8)]
55 GETL D0Ar6, D1Ar5, [A0StP++#(-8)]
58 #endif /* CONFIG_DYNAMIC_FTRACE */