diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2021-05-10 11:53:11 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 10:49:14 +0200 |
commit | 3e5e7f7736b05d5fdf2cc4e0ba4f2d8bc42c630d (patch) | |
tree | f977d3f00fa8ea6903116d38827ad69eb679a212 /arch/x86/entry/entry_64.S | |
parent | x86/entry: Unify definitions from <asm/calling.h> and <asm/ptrace-abi.h> (diff) | |
download | wireguard-linux-3e5e7f7736b05d5fdf2cc4e0ba4f2d8bc42c630d.tar.xz wireguard-linux-3e5e7f7736b05d5fdf2cc4e0ba4f2d8bc42c630d.zip |
x86/entry: Reverse arguments to do_syscall_64()
Reverse the order of arguments to do_syscall_64() so that the first
argument is the pt_regs pointer. This is not only consistent with
*all* other entry points from assembly, but it actually makes the
compiled code slightly better.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510185316.3307264-3-hpa@zytor.com
Diffstat (limited to 'arch/x86/entry/entry_64.S')
-rw-r--r-- | arch/x86/entry/entry_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index a16a5294d55f..1d9db15fdc69 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -107,8 +107,8 @@ SYM_INNER_LABEL(entry_SYSCALL_64_after_hwframe, SYM_L_GLOBAL) PUSH_AND_CLEAR_REGS rax=$-ENOSYS /* IRQs are off. */ - movq %rax, %rdi - movq %rsp, %rsi + movq %rsp, %rdi + movq %rax, %rsi call do_syscall_64 /* returns with IRQs disabled */ /* |