summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2017-06-24 09:33:25 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2017-06-24 09:33:25 +0000
commit644e7b2956f77a26c4ef84763653e131194a2bcb (patch)
treef1dc6736360a16d802932ea0576356c212471447
parenta639d52309fca3d6d79e3014ea4795c014cc380a (diff)
Notes
-rw-r--r--sys/boot/efi/loader/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c
index 6fab757be5f1..542674414b82 100644
--- a/sys/boot/efi/loader/main.c
+++ b/sys/boot/efi/loader/main.c
@@ -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 */