Only read the ACPI proximity tabled on arm64 when we are booting from

ACPI.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-12-11 11:13:11 +00:00
parent 99f65e3efe
commit 1242588828

View File

@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
#include <vm/pmap.h>
#include <machine/machdep.h>
#include <contrib/dev/acpica/include/acpi.h>
#include <contrib/dev/acpica/include/accommon.h>
#include <contrib/dev/acpica/include/actables.h>
@ -239,6 +241,10 @@ static void
parse_pxm_tables(void *dummy)
{
/* Only parse ACPI tables when booting via ACPI */
if (arm64_bus_method != ARM64_BUS_ACPI)
return;
acpi_pxm_init(MAXCPU, (vm_paddr_t)1 << 40);
acpi_pxm_parse_tables();
acpi_pxm_set_mem_locality();