On Wed, Mar 14, 2018 at 04:50:47PM +0000, Marc Zyngier wrote: > We're about to need to allocate hardening slots from other parts > of the kernel (in order to support ARM64_HARDEN_EL2_VECTORS). > > Turn the counter into an atomic_t and make it available to the > rest of the kernel. Also add BP_HARDEN_EL2_SLOTS as the number of > slots instead of the hardcoded 4... > > Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> > --- > arch/arm64/include/asm/mmu.h | 3 +++ > arch/arm64/kernel/bpi.S | 3 ++- > arch/arm64/kernel/cpu_errata.c | 9 ++++----- > 3 files changed, 9 insertions(+), 6 deletions(-) > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>