diff options
Diffstat (limited to 'arch/powerpc/kernel/entry_32.S')
-rw-r--r-- | arch/powerpc/kernel/entry_32.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 3b1dd29d9f91..7231a708af0d 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <asm/ppc_asm.h> | 30 | #include <asm/ppc_asm.h> |
31 | #include <asm/asm-offsets.h> | 31 | #include <asm/asm-offsets.h> |
32 | #include <asm/unistd.h> | 32 | #include <asm/unistd.h> |
33 | #include <asm/ftrace.h> | ||
33 | 34 | ||
34 | #undef SHOW_SYSCALLS | 35 | #undef SHOW_SYSCALLS |
35 | #undef SHOW_SYSCALLS_TASK | 36 | #undef SHOW_SYSCALLS_TASK |
@@ -1053,6 +1054,7 @@ _GLOBAL(_mcount) | |||
1053 | stw r10,40(r1) | 1054 | stw r10,40(r1) |
1054 | stw r3, 44(r1) | 1055 | stw r3, 44(r1) |
1055 | stw r5, 8(r1) | 1056 | stw r5, 8(r1) |
1057 | subi r3, r3, MCOUNT_INSN_SIZE | ||
1056 | .globl mcount_call | 1058 | .globl mcount_call |
1057 | mcount_call: | 1059 | mcount_call: |
1058 | bl ftrace_stub | 1060 | bl ftrace_stub |
@@ -1090,6 +1092,7 @@ _GLOBAL(ftrace_caller) | |||
1090 | stw r10,40(r1) | 1092 | stw r10,40(r1) |
1091 | stw r3, 44(r1) | 1093 | stw r3, 44(r1) |
1092 | stw r5, 8(r1) | 1094 | stw r5, 8(r1) |
1095 | subi r3, r3, MCOUNT_INSN_SIZE | ||
1093 | .globl ftrace_call | 1096 | .globl ftrace_call |
1094 | ftrace_call: | 1097 | ftrace_call: |
1095 | bl ftrace_stub | 1098 | bl ftrace_stub |
@@ -1128,6 +1131,7 @@ _GLOBAL(_mcount) | |||
1128 | stw r3, 44(r1) | 1131 | stw r3, 44(r1) |
1129 | stw r5, 8(r1) | 1132 | stw r5, 8(r1) |
1130 | 1133 | ||
1134 | subi r3, r3, MCOUNT_INSN_SIZE | ||
1131 | LOAD_REG_ADDR(r5, ftrace_trace_function) | 1135 | LOAD_REG_ADDR(r5, ftrace_trace_function) |
1132 | lwz r5,0(r5) | 1136 | lwz r5,0(r5) |
1133 | 1137 | ||