Merge branch 'perf/core' into perf/probes
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / entry_64.S
index 42a0b2cbf2e12652c7ca0734565742a450793a14..722df1b1152d57721568ef583e4f2c002922979b 100644 (file)
@@ -155,11 +155,11 @@ GLOBAL(return_to_handler)
 
        call ftrace_return_to_handler
 
-       movq %rax, 16(%rsp)
+       movq %rax, %rdi
        movq 8(%rsp), %rdx
        movq (%rsp), %rax
-       addq $16, %rsp
-       retq
+       addq $24, %rsp
+       jmp *%rdi
 #endif