arm64: idreg-override: Move to early mini C runtime
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:50 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:28 +0000 (12:42 +0000)
commite223a449125571daa62debd8249fa4fc2da0a961
tree60cf87f8ffdc3f19481cc5da97d01d55c1694b95
parent734958ef0b5497b1b9cb827afb541e7825477bbd
arm64: idreg-override: Move to early mini C runtime

We will want to parse the ID register overrides even earlier, so that we
can take them into account before creating the kernel mapping. So
migrate the code and make it work in the context of the early C runtime.
We will move the invocation to an earlier stage in a subsequent patch.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-49-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/Makefile
arch/arm64/kernel/head.S
arch/arm64/kernel/image-vars.h
arch/arm64/kernel/pi/Makefile
arch/arm64/kernel/pi/idreg-override.c [moved from arch/arm64/kernel/idreg-override.c with 93% similarity]