From: Huacai Chen Date: Mon, 3 Oct 2022 14:08:38 +0000 (+0800) Subject: Merge tag 'efi-next-for-v6.1' into loongarch-next X-Git-Tag: baikal/mips/sdk6.1~4619^2~25 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=b17a4a61b7a6cde73b04eadc8d1b1b1ae31d1a7a;p=kernel.git Merge tag 'efi-next-for-v6.1' into loongarch-next LoongArch architecture changes for 6.1 depend on the efi changes to work, so merge them to create a base. --- b17a4a61b7a6cde73b04eadc8d1b1b1ae31d1a7a diff --cc arch/loongarch/kernel/head.S index 331864369e49e,8f89f39fd31b0..7e57ae8741b1a --- a/arch/loongarch/kernel/head.S +++ b/arch/loongarch/kernel/head.S @@@ -12,10 -12,28 +12,30 @@@ #include #include + #ifdef CONFIG_EFI_STUB + + #include "efi-header.S" + + __HEAD + + _head: + .word MZ_MAGIC /* "MZ", MS-DOS header */ + .org 0x3c /* 0x04 ~ 0x3b reserved */ + .long pe_header - _head /* Offset to the PE header */ + + pe_header: + __EFI_PE_HEADER + + SYM_DATA(kernel_asize, .long _end - _text); + SYM_DATA(kernel_fsize, .long _edata - _text); + SYM_DATA(kernel_offset, .long kernel_offset - _text); + + #endif + __REF + .align 12 + SYM_CODE_START(kernel_entry) # kernel entry point /* Config direct window and set PG */