Skip to content
Commit eae6e7db authored by Wang Yao's avatar Wang Yao Committed by Greg Kroah-Hartman
Browse files

efi/loongarch: Directly position the loaded image file



[ Upstream commit 174a0c56 ]

The use of the 'kernel_offset' variable to position the image file that
has been loaded by UEFI or GRUB is unnecessary, because we can directly
position the loaded image file through using the image_base field of the
efi_loaded_image struct provided by UEFI.

Replace kernel_offset with image_base to position the image file that has
been loaded by UEFI or GRUB.

Signed-off-by: default avatarWang Yao <wangyao@lemote.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Stable-dep-of: beb28000 ("LoongArch: Fix entry point in kernel image header")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d9a5d5c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment