arm64: Move "nokaslr" over to the early cpufeature infrastructure
authorMarc Zyngier <maz@kernel.org>
Mon, 8 Feb 2021 09:57:28 +0000 (09:57 +0000)
committerWill Deacon <will@kernel.org>
Tue, 9 Feb 2021 13:50:57 +0000 (13:50 +0000)
commita762f4ffc3c8a434da1b712e57a80d8d10404198
treed7e52cfa399bc671d8064b9d853f12cac0595f82
parent166cc2a4be0d80075d379b30d3e84895c878a1a8
arm64: Move "nokaslr" over to the early cpufeature infrastructure

Given that the early cpufeature infrastructure has borrowed quite
a lot of code from the kaslr implementation, let's reimplement
the matching of the "nokaslr" option with it.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Brazdil <dbrazdil@google.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-20-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/idreg-override.c
arch/arm64/kernel/kaslr.c