Message ID | 54AF7A79.20500@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/probes/kprobes/opt-arm.c b/arch/arm/probes/kprobes/opt-arm.c index 6a60df3..cb47eff 100644 --- a/arch/arm/probes/kprobes/opt-arm.c +++ b/arch/arm/probes/kprobes/opt-arm.c @@ -58,7 +58,12 @@ asm ( */ " and r4, sp, #4\n" " sub sp, sp, r4\n" +#if __LINUX_ARM_ARCH__ >= 5 " blx r2\n" +#else + " mov lr, pc\n" + " bx r2\n" +#endif " add sp, sp, r4\n" " ldr r1, [sp, #64]\n" " tst r1, #"__stringify(PSR_T_BIT)"\n"