Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2017 09:33:25 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320304 - head/sys/boot/efi/loader
Message-ID:  <201706240933.v5O9XPVg032451@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706240933.v5O9XPVg032451>