Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2018 14:56:03 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334616 - head/sys/dev/acpica
Message-ID:  <201806041456.w54Eu3hB062082@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Jun  4 14:56:02 2018
New Revision: 334616
URL: https://svnweb.freebsd.org/changeset/base/334616

Log:
  Fix the NUMA build for non-x86 platforms.
  
  acpi_map_pxm_to_vm_domainid() is currently implemented only on x86.
  
  MFC after:	1 week

Modified:
  head/sys/dev/acpica/acpi.c

Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c	Mon Jun  4 14:42:13 2018	(r334615)
+++ head/sys/dev/acpica/acpi.c	Mon Jun  4 14:56:02 2018	(r334616)
@@ -1090,6 +1090,7 @@ static int
 acpi_parse_pxm(device_t dev)
 {
 #ifdef NUMA
+#if defined(__i386__) || defined(__amd64__)
 	ACPI_HANDLE handle;
 	ACPI_STATUS status;
 	int pxm;
@@ -1102,6 +1103,7 @@ acpi_parse_pxm(device_t dev)
 		return (acpi_map_pxm_to_vm_domainid(pxm));
 	if (status == AE_NOT_FOUND)
 		return (-2);
+#endif
 #endif
 	return (-1);
 }



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