]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Split PUSH_AND_CLEAR_REGS into two submacros
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Mon, 10 May 2021 18:53:14 +0000 (11:53 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 08:49:15 +0000 (10:49 +0200)
commitb949984c9821b29fa14cf08fd5d8cc5e9745067b
tree25406ba0ca604a689d19f63f1108e1bde538bed4
parent9837651549f32ce5e1c2cf6b635bd0666e705b37
x86/entry: Split PUSH_AND_CLEAR_REGS into two submacros

PUSH_AND_CLEAR_REGS, as the name implies, performs two functions:
pushing registers and clearing registers. They don't necessarily have
to be performed in immediate sequence, although all current users
do. Split it into two macros for the case where that isn't desired;
the FRED enabling patchset will eventually make use of this.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510185316.3307264-6-hpa@zytor.com
arch/x86/entry/calling.h