x86/entry: Reverse arguments to do_syscall_64()
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Mon, 10 May 2021 18:53:11 +0000 (11:53 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 08:49:14 +0000 (10:49 +0200)
commit3e5e7f7736b05d5fdf2cc4e0ba4f2d8bc42c630d
treef977d3f00fa8ea6903116d38827ad69eb679a212
parent6627eb25e40cc8d135d3f8d5391851d18ac497d7
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
arch/x86/entry/common.c
arch/x86/entry/entry_64.S
arch/x86/include/asm/syscall.h