]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Move SYSENTER's regs->sp and regs->flags fixups into C
authorAndy Lutomirski <luto@kernel.org>
Fri, 26 Jun 2020 17:21:12 +0000 (10:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 1 Jul 2020 08:00:25 +0000 (10:00 +0200)
commitd19028a09730f56fce3203dda82c6c90b3d5e4bc
tree44a4bb9b6a00cbdda62e36ec124c89fa093a9253
parent4325f5617a5e4fa9fdcbb374bcdf23ef805087a9
x86/entry: Move SYSENTER's regs->sp and regs->flags fixups into C

The SYSENTER asm (32-bit and compat) contains fixups for regs->sp and
regs->flags.  Move the fixups into C and fix some comments while at it.

This is a valid cleanup all by itself, and it also simplifies the
subsequent patch that will fix Xen PV SYSENTER.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/fe62bef67eda7fac75b8f3dbafccf571dc4ece6b.1593191971.git.luto@kernel.org
arch/x86/entry/common.c
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64_compat.S