summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorWang Yao <wangyao@lemote.com>2023-12-06 03:24:27 +0300
committerArd Biesheuvel <ardb@kernel.org>2023-12-11 13:18:26 +0300
commit271f2a4a9576b87ed1f8584909d6d270039e52ea (patch)
tree6b39c0351d1ed435de6ec5fba4a048bb738d7997 /arch
parent01b1e3ca0e5ce47bbae8217d47376ad01b331b07 (diff)
downloadlinux-271f2a4a9576b87ed1f8584909d6d270039e52ea.tar.xz
efi/loongarch: Use load address to calculate kernel entry address
The efi_relocate_kernel() may load the PIE kernel to anywhere, the loaded address may not be equal to link address or EFI_KIMG_PREFERRED_ADDRESS. Acked-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Wang Yao <wangyao@lemote.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/loongarch/include/asm/efi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/include/asm/efi.h b/arch/loongarch/include/asm/efi.h
index 091897d40b03..91d81f9730ab 100644
--- a/arch/loongarch/include/asm/efi.h
+++ b/arch/loongarch/include/asm/efi.h
@@ -32,6 +32,6 @@ static inline unsigned long efi_get_kimg_min_align(void)
#define EFI_KIMG_PREFERRED_ADDRESS PHYSADDR(VMLINUX_LOAD_ADDRESS)
-unsigned long kernel_entry_address(void);
+unsigned long kernel_entry_address(unsigned long kernel_addr);
#endif /* _ASM_LOONGARCH_EFI_H */