arm64: Add helpers to probe local CPU for PAC and BTI support
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:59 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:31 +0000 (12:42 +0000)
commita669c6a4935626786e456b25e9cf2bfbba908f15
treeb7ef4ae856576c08cbec05e5bf9cfce991f172c5
parent9ddd9baa42a01d383d278096a11b200b53ba9470
arm64: Add helpers to probe local CPU for PAC and BTI support

Add some helpers that will be used by the early kernel mapping code to
check feature support on the local CPU. This permits the early kernel
mapping to be created with the right attributes, removing the need for
tearing it down and recreating it.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-58-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h