Commit 0bab9cb2 authored by Borislav Petkov's avatar Borislav Petkov

x86/entry: Remove put_ret_addr_in_rdi THUNK macro argument

That logic is unused since

  320100a5 ("x86/entry: Remove the TRACE_IRQS cruft")

Remove it.
Suggested-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/YAAszZJ2GcIYZmB5@hirez.programming.kicks-ass.net
parent 5e6dca82
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <asm/export.h> #include <asm/export.h>
/* rdi: arg1 ... normal C conventions. rax is saved/restored. */ /* rdi: arg1 ... normal C conventions. rax is saved/restored. */
.macro THUNK name, func, put_ret_addr_in_rdi=0 .macro THUNK name, func
SYM_FUNC_START_NOALIGN(\name) SYM_FUNC_START_NOALIGN(\name)
pushq %rbp pushq %rbp
movq %rsp, %rbp movq %rsp, %rbp
...@@ -25,11 +25,6 @@ SYM_FUNC_START_NOALIGN(\name) ...@@ -25,11 +25,6 @@ SYM_FUNC_START_NOALIGN(\name)
pushq %r10 pushq %r10
pushq %r11 pushq %r11
.if \put_ret_addr_in_rdi
/* 8(%rbp) is return addr on stack */
movq 8(%rbp), %rdi
.endif
call \func call \func
jmp __thunk_restore jmp __thunk_restore
SYM_FUNC_END(\name) SYM_FUNC_END(\name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment