]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: entry: Move trampoline macros out of ifdef'd section
authorJames Morse <james.morse@arm.com>
Thu, 31 Mar 2022 18:33:48 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Apr 2022 10:41:09 +0000 (12:41 +0200)
commit10fbae210aaa77f506f7b853c027b3c47b3d137c
treec13e8108f953b0d7794964377cae1bde4e7ec02e
parentdc8f7c1018a69e72cdf1cba978071ae6b54ae164
arm64: entry: Move trampoline macros out of ifdef'd section

commit 13d7a08352a83ef2252aeb464a5e08dfc06b5dfd upstream.

The macros for building the kpti trampoline are all behind
CONFIG_UNMAP_KERNEL_AT_EL0, and in a region that outputs to the
.entry.tramp.text section.

Move the macros out so they can be used to generate other kinds of
trampoline. Only the symbols need to be guarded by
CONFIG_UNMAP_KERNEL_AT_EL0 and appear in the .entry.tramp.text section.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/entry.S