]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/entry: Remove skip_r11rcx
authorPeter Zijlstra <peterz@infradead.org>
Thu, 27 Oct 2022 20:54:41 +0000 (13:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Nov 2022 18:14:44 +0000 (19:14 +0100)
commit2d939788f32ed539f2745f5b203b30de9e4a30ac
treea19287cb6c0e702415a5aaffcb7935f01a61c985
parent01ffba9ebe49e25a6106afe4c7655c11c90f6bdc
x86/entry: Remove skip_r11rcx

commit 1b331eeea7b8676fc5dbdf80d0a07e41be226177 upstream.

Yes, r11 and rcx have been restored previously, but since they're being
popped anyway (into rsi) might as well pop them into their own regs --
setting them to the value they already are.

Less magical code.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220506121631.365070674@infradead.org
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/calling.h
arch/x86/entry/entry_64.S