ARM: 9198/1: spectre-bhb: simplify BPIALL vector macro
authorArd Biesheuvel <ardb@kernel.org>
Wed, 20 Apr 2022 08:55:35 +0000 (09:55 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 20 May 2022 11:32:32 +0000 (12:32 +0100)
commitc4f486f1e7b34b27ec578494a236061b337d50ae
treed9b03c71b2c2b8ffd07d8e88b955b3ebc5d657c5
parent508074607c7b95b24f0adf633fdf606761bb7824
ARM: 9198/1: spectre-bhb: simplify BPIALL vector macro

The BPIALL mitigation for Spectre-BHB adds a single instruction to the
handler sequence that doesn't clobber any registers. Given that these
sequences are 10 instructions long, they don't fit neatly into a
cacheline anyway, so we can simply move that single instruction to the
start of the unmitigated one, and rearrange the symbol names accordingly.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/entry-armv.S