diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-01-29 12:35:51 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-01-29 20:22:40 +0100 |
commit | 18dd984c56b339be74e390df80fd3dc21b7a9b58 (patch) | |
tree | 94d44ddf983d8b5b9cdeeae6df5c9d7cff1142ab /arch/arm/lib | |
parent | 850d27b4b9d4cc3244ff4331b90b0376a7e9691e (diff) | |
download | u-boot-18dd984c56b339be74e390df80fd3dc21b7a9b58.zip u-boot-18dd984c56b339be74e390df80fd3dc21b7a9b58.tar.gz u-boot-18dd984c56b339be74e390df80fd3dc21b7a9b58.tar.bz2 |
efi_loader: add Linux magic to aarch64 crt0
Add the Linux magic to the EFI file header to allow running our test
programs with GRUB's linux command. Now we can dump the fixed-up device
tree with our dtbdump.efi tool.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/crt0_aarch64_efi.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/lib/crt0_aarch64_efi.S b/arch/arm/lib/crt0_aarch64_efi.S index 368933e..492195f 100644 --- a/arch/arm/lib/crt0_aarch64_efi.S +++ b/arch/arm/lib/crt0_aarch64_efi.S @@ -18,7 +18,8 @@ .globl ImageBase ImageBase: .short IMAGE_DOS_SIGNATURE /* 'MZ' */ - .skip 58 /* 'MZ' + pad + offset == 64 */ + .skip 54 /* 'MZ' + pad + offset == 64 */ + .long LINUX_ARM64_MAGIC /* For GRUB's linux command */ .long pe_header - ImageBase /* Offset to the PE header */ pe_header: .long IMAGE_NT_SIGNATURE /* 'PE' */ |