Author: manu
Date: Sat Jun 24 09:33:25 2017
New Revision: 320304
URL: https://svnweb.freebsd.org/changeset/base/320304

Log:
  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).

Modified:
  head/sys/boot/efi/loader/main.c

Modified: head/sys/boot/efi/loader/main.c
==============================================================================
--- head/sys/boot/efi/loader/main.c     Sat Jun 24 07:44:05 2017        
(r320303)
+++ head/sys/boot/efi/loader/main.c     Sat Jun 24 09:33:25 2017        
(r320304)
@@ -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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to