arm64: head: move memstart_offset_seed handling to C code
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:29:01 +0000 (13:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:32 +0000 (12:42 +0000)
commitaa6a52b2470c375ecd71b1d81c89d93b11134b56
treec7d9928f458bf16223693797f9e9096c0c3da854
parent8d47b8e5c74a1be600fd68bbbb4c2ecd8d4cc33c
arm64: head: move memstart_offset_seed handling to C code

Now that we can set BSS variables from the early code running from the
ID map, we can set memstart_offset_seed directly from the C code that
derives the value instead of passing it back and forth between C and asm
code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-60-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/head.S
arch/arm64/kernel/image-vars.h
arch/arm64/kernel/pi/kaslr_early.c