]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/entry: Remove skip_r11rcx
authorPeter Zijlstra <peterz@infradead.org>
Fri, 6 May 2022 12:14:35 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jul 2022 09:26:33 +0000 (11:26 +0200)
commit148811a84292467b0527eb789f24cd4fe004136c
tree49c6f7b0411c84d877c63b12b7bed9a266f3cbb4
parente1db6c8a69ec74aa0ecff19857895d10f39c6d98
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
[bwh: Backported to 5.10: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/calling.h
arch/x86/entry/entry_64.S