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);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to