Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/acpica/acpi_machdep.c
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
#if MAXMEMDOM > 1 | #if MAXMEMDOM > 1 | ||||
static void | static void | ||||
parse_pxm_tables(void *dummy) | parse_pxm_tables(void *dummy) | ||||
{ | { | ||||
/* Only parse ACPI tables when booting via ACPI */ | /* Only parse ACPI tables when booting via ACPI */ | ||||
if (arm64_bus_method != ARM64_BUS_ACPI) | if (firmware_type != FW_UEFI) | ||||
return; | return; | ||||
acpi_pxm_init(MAXCPU, get_physaddr_max()); | acpi_pxm_init(MAXCPU, get_physaddr_max()); | ||||
acpi_pxm_parse_tables(); | acpi_pxm_parse_tables(); | ||||
acpi_pxm_set_mem_locality(); | acpi_pxm_set_mem_locality(); | ||||
} | } | ||||
SYSINIT(parse_pxm_tables, SI_SUB_VM - 1, SI_ORDER_FIRST, parse_pxm_tables, | SYSINIT(parse_pxm_tables, SI_SUB_VM - 1, SI_ORDER_FIRST, parse_pxm_tables, | ||||
NULL); | NULL); | ||||
#endif | #endif |