]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Merge tag 'efi-next-for-v6.1' into loongarch-next
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 3 Oct 2022 14:08:38 +0000 (22:08 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 3 Oct 2022 14:08:38 +0000 (22:08 +0800)
LoongArch architecture changes for 6.1 depend on the efi changes to
work, so merge them to create a base.

1  2 
arch/loongarch/Kconfig
arch/loongarch/kernel/head.S
arch/loongarch/kernel/vmlinux.lds.S
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/x86-stub.c

Simple merge
index 331864369e49ece9d5ff79e26aa0d3d75f5b0a9c,8f89f39fd31b0eb21ddfb86c1ad8591edffcc99d..7e57ae8741b1a07b16c56ac4a6a5ae8949fb6f1e
  #include <asm/loongarch.h>
  #include <asm/stackframe.h>
  
+ #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 */
Simple merge
Simple merge