174a0c565c
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: Wang Yao <wangyao@lemote.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
21 lines
528 B
C
21 lines
528 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#ifndef __LOONGARCH_KERNEL_IMAGE_VARS_H
|
|
#define __LOONGARCH_KERNEL_IMAGE_VARS_H
|
|
|
|
#ifdef CONFIG_EFI_STUB
|
|
|
|
__efistub_strcmp = strcmp;
|
|
__efistub_kernel_entry = kernel_entry;
|
|
__efistub_kernel_asize = kernel_asize;
|
|
__efistub_kernel_fsize = kernel_fsize;
|
|
#if defined(CONFIG_EFI_EARLYCON) || defined(CONFIG_SYSFB)
|
|
__efistub_screen_info = screen_info;
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif /* __LOONGARCH_KERNEL_IMAGE_VARS_H */
|