]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Add macro version of the BTI instruction
authorMark Brown <broonie@kernel.org>
Tue, 14 Dec 2021 15:27:12 +0000 (15:27 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 14 Dec 2021 18:12:58 +0000 (18:12 +0000)
commiteda394356cbf6b73b284241a9fe3d393268b77fc
tree07006b3125d6a9bcee977cb2367d0b92d2c97819
parent7dc69b18f61b8e23517866af3314e51f4c0d6b1f
arm64: Add macro version of the BTI instruction

BTI is only available from v8.5 so we need to encode it using HINT in
generic code and for older toolchains. Add an assembler macro based on
one written by Mark Rutland which lets us use the mnemonic and update
the existing users.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20211214152714.2380849-2-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/crypto/aes-modes.S
arch/arm64/include/asm/assembler.h
arch/arm64/include/asm/linkage.h