diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/mips/kernel/mcount.S | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index 165867673357..33d067148e61 100644 --- a/arch/mips/kernel/mcount.S +++ b/arch/mips/kernel/mcount.S | |||
| @@ -46,10 +46,9 @@ | |||
| 46 | PTR_L a5, PT_R9(sp) | 46 | PTR_L a5, PT_R9(sp) |
| 47 | PTR_L a6, PT_R10(sp) | 47 | PTR_L a6, PT_R10(sp) |
| 48 | PTR_L a7, PT_R11(sp) | 48 | PTR_L a7, PT_R11(sp) |
| 49 | #else | ||
| 50 | PTR_ADDIU sp, PT_SIZE | ||
| 51 | #endif | 49 | #endif |
| 52 | .endm | 50 | PTR_ADDIU sp, PT_SIZE |
| 51 | .endm | ||
| 53 | 52 | ||
| 54 | .macro RETURN_BACK | 53 | .macro RETURN_BACK |
| 55 | jr ra | 54 | jr ra |
| @@ -68,7 +67,11 @@ NESTED(ftrace_caller, PT_SIZE, ra) | |||
| 68 | .globl _mcount | 67 | .globl _mcount |
| 69 | _mcount: | 68 | _mcount: |
| 70 | b ftrace_stub | 69 | b ftrace_stub |
| 71 | addiu sp,sp,8 | 70 | #ifdef CONFIG_32BIT |
| 71 | addiu sp,sp,8 | ||
| 72 | #else | ||
| 73 | nop | ||
| 74 | #endif | ||
| 72 | 75 | ||
| 73 | /* When tracing is activated, it calls ftrace_caller+8 (aka here) */ | 76 | /* When tracing is activated, it calls ftrace_caller+8 (aka here) */ |
| 74 | lw t1, function_trace_stop | 77 | lw t1, function_trace_stop |
