loader.efi: Disable smbios for arm

The smbios code does a lot of unaligned access, since we don't really
care about smbios info on ARM (not all board expose information and those
who does don't expose useful ones) disable smbios for this arch (at least
for now).
This commit is contained in:
manu 2017-06-24 09:33:25 +00:00
parent 4e5445fa61
commit 4219faa563

View File

@ -308,7 +308,9 @@ main(int argc, CHAR16 *argv[])
int i, j, vargood, howto;
UINTN k;
int has_kbd;
#if !defined(__arm__)
char buf[40];
#endif
archsw.arch_autoload = efi_autoload;
archsw.arch_getdev = efi_getdev;
@ -482,6 +484,7 @@ main(int argc, CHAR16 *argv[])
for (k = 0; k < ST->NumberOfTableEntries; k++) {
guid = &ST->ConfigurationTable[k].VendorGuid;
#if !defined(__arm__)
if (!memcmp(guid, &smbios, sizeof(EFI_GUID))) {
snprintf(buf, sizeof(buf), "%p",
ST->ConfigurationTable[k].VendorTable);
@ -489,6 +492,7 @@ main(int argc, CHAR16 *argv[])
smbios_detect(ST->ConfigurationTable[k].VendorTable);
break;
}
#endif
}
interact(NULL); /* doesn't return */