aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/ftrace.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c
index f20f49f7d244..2f9c0c8cb4c7 100644
--- a/arch/x86/kernel/ftrace.c
+++ b/arch/x86/kernel/ftrace.c
@@ -468,8 +468,8 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr)
468 * ignore such a protection. 468 * ignore such a protection.
469 */ 469 */
470 asm volatile( 470 asm volatile(
471 "1: " _ASM_MOV " (%[parent_old]), %[old]\n" 471 "1: " _ASM_MOV " (%[parent]), %[old]\n"
472 "2: " _ASM_MOV " %[return_hooker], (%[parent_replaced])\n" 472 "2: " _ASM_MOV " %[return_hooker], (%[parent])\n"
473 " movl $0, %[faulted]\n" 473 " movl $0, %[faulted]\n"
474 "3:\n" 474 "3:\n"
475 475
@@ -481,9 +481,8 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr)
481 _ASM_EXTABLE(1b, 4b) 481 _ASM_EXTABLE(1b, 4b)
482 _ASM_EXTABLE(2b, 4b) 482 _ASM_EXTABLE(2b, 4b)
483 483
484 : [parent_replaced] "=r" (parent), [old] "=r" (old), 484 : [old] "=r" (old), [faulted] "=r" (faulted)
485 [faulted] "=r" (faulted) 485 : [parent] "r" (parent), [return_hooker] "r" (return_hooker)
486 : [parent_old] "0" (parent), [return_hooker] "r" (return_hooker)
487 : "memory" 486 : "memory"
488 ); 487 );
489 488