projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a079077
)
boot: Add ARM64 support to the EFI stub
author
Dimitri John Ledkov
<xnox@ubuntu.com>
Wed, 13 Nov 2019 01:20:44 +0000
(17:20 -0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 14 Nov 2019 09:03:08 +0000
(10:03 +0100)
src/boot/efi/pe.c
patch
|
blob
|
history
diff --git
a/src/boot/efi/pe.c
b/src/boot/efi/pe.c
index
f1f947b
..
68f50ae
100644
(file)
--- a/
src/boot/efi/pe.c
+++ b/
src/boot/efi/pe.c
@@
-30,6
+30,7
@@
struct DosFileHeader {
#define PE_HEADER_MACHINE_I386 0x014c
#define PE_HEADER_MACHINE_X64 0x8664
+#define PE_HEADER_MACHINE_ARM64 0xaa64
struct PeFileHeader {
UINT16 Machine;
UINT16 NumberOfSections;
@@
-75,6
+76,7
@@
EFI_STATUS pe_memory_locate_sections(CHAR8 *base, CHAR8 **sections, UINTN *addrs
/* PE32+ Subsystem type */
if (pe->FileHeader.Machine != PE_HEADER_MACHINE_X64 &&
+ pe->FileHeader.Machine != PE_HEADER_MACHINE_ARM64 &&
pe->FileHeader.Machine != PE_HEADER_MACHINE_I386)
return EFI_LOAD_ERROR;