]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/entry: deduplicate SW PAN entry/exit routines
authorArd Biesheuvel <ardb@kernel.org>
Tue, 21 Jul 2020 08:33:15 +0000 (10:33 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 23 Jul 2020 11:38:55 +0000 (12:38 +0100)
commitd2b3d30f38a462f628cf13853749cd7e3e0ff9f2
tree90d3bc707aaac7f04a85ee600144bb17e9ada371
parentc084ef32f7ef40cd8a5e106570e181a841d541d7
arm64/entry: deduplicate SW PAN entry/exit routines

Factor the 12 copies of the SW PAN entry and exit code into callable
subroutines, and use alternatives patching to either emit a 'bl'
instruction to call them, or a NOP if h/w PAN is found to be available
at runtime.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20200721083315.4816-1-ardb@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S