mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
850d27b4b9
commit
18dd984c56
|
@ -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' */
|
||||
|
|
|
@ -51,4 +51,6 @@
|
|||
#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12
|
||||
#define IMAGE_SUBSYSTEM_EFI_ROM 13
|
||||
|
||||
#define LINUX_ARM64_MAGIC 0x644d5241
|
||||
|
||||
#endif /* _ASM_PE_H */
|
||||
|
|
Loading…
Reference in New Issue
Block a user