mirror of
https://github.com/systemd/systemd.git
synced 2025-03-29 06:50:16 +03:00
boot: Add ARM64 support to the EFI stub
This commit is contained in:
parent
a079077340
commit
07d5ed536e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user