]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitd1721250f3ffed9afba3e1fb729947cec64c5a8a
tree44a4bb9b6a00cbdda62e36ec124c89fa093a9253
parentc9c26150e61de441ab58b25c1f64afc049ee0fee
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