[GIT PULL] x86/asm changes for v5.14

From: Ingo Molnar
Date: Mon Jun 28 2021 - 03:22:24 EST


Linus,

Please pull the latest x86/asm git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-2021-06-28

# HEAD: 41f45fb045bcc20e71eb705b361356e715682162 x86/asm: Make <asm/asm.h> valid on cross-builds as well

Changes for this cycle:

- Micro-optimize and standardize the do_syscall_64() calling convention
- Make syscall entry flags clearing more conservative
- Clean up syscall table handling
- Clean up & standardize assembly macros, in preparation of FRED
- Misc cleanups and fixes

Thanks,

Ingo

------------------>
H. Peter Anvin (1):
x86/regs: Syscall_get_nr() returns -1 for a non-system call

H. Peter Anvin (Intel) (8):
x86/asm: Have the __ASM_FORM macros handle commas in arguments
x86/asm: Add _ASM_BYTES() macro for a .byte ... opcode sequence
x86/asm: Use _ASM_BYTES() in <asm/nops.h>
x86/entry: Unify definitions from <asm/calling.h> and <asm/ptrace-abi.h>
x86/entry: Reverse arguments to do_syscall_64()
x86/syscall: Unconditionally prototype {ia32,x32}_sys_call_table[]
x86/syscall: Maximize MSR_SYSCALL_MASK
x86/entry: Split PUSH_AND_CLEAR_REGS into two submacros

Ingo Molnar (1):
x86/asm: Make <asm/asm.h> valid on cross-builds as well


arch/x86/entry/calling.h | 45 ++-------
arch/x86/entry/common.c | 2 +-
arch/x86/entry/entry_64.S | 4 +-
arch/x86/include/asm/asm.h | 27 +++---
arch/x86/include/asm/nops.h | 24 ++---
arch/x86/include/asm/syscall.h | 13 ++-
arch/x86/kernel/cpu/common.c | 12 ++-
arch/x86/kernel/head_64.S | 6 +-
arch/x86/kernel/ptrace.c | 2 +-
arch/x86/kernel/signal.c | 4 +-
tools/arch/x86/include/asm/asm.h | 193 ++++++++++++++++++++++++++++++++++++++
tools/arch/x86/include/asm/nops.h | 24 ++---
12 files changed, 262 insertions(+), 94 deletions(-)
create mode 100644 tools/arch/x86/include/asm/asm.h