]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit402d4a35a9fa2eea6b1dc95084909b12d57d0ff6
treed9b03c71b2c2b8ffd07d8e88b955b3ebc5d657c5
parent707e87e7663b36b4727ed7a3db460d3466742e54
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