Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/acpica/srat.c
Show First 20 Lines • Show All 443 Lines • ▼ Show 20 Lines | parse_srat(void) | ||||
phys_avail[idx + 1] = addr - 1; | phys_avail[idx + 1] = addr - 1; | ||||
/* | /* | ||||
* We cannot rely on PHYS_TO_DMAP because this code is also used in | * We cannot rely on PHYS_TO_DMAP because this code is also used in | ||||
* i386, so use pmap_mapbios to map the memory, this will end up using | * i386, so use pmap_mapbios to map the memory, this will end up using | ||||
* the default memory attribute (WB), and the DMAP when available. | * the default memory attribute (WB), and the DMAP when available. | ||||
*/ | */ | ||||
cpus = (struct cpu_info *)pmap_mapbios(addr, size); | cpus = (struct cpu_info *)pmap_mapbios(addr, size); | ||||
bzero(cpus, size); | |||||
/* | /* | ||||
* Make a pass over the table to populate the cpus[] and | * Make a pass over the table to populate the cpus[] and | ||||
* mem_info[] tables. | * mem_info[] tables. | ||||
*/ | */ | ||||
srat = acpi_map_table(srat_physaddr, ACPI_SIG_SRAT); | srat = acpi_map_table(srat_physaddr, ACPI_SIG_SRAT); | ||||
error = 0; | error = 0; | ||||
srat_walk_table(srat_parse_entry, &error); | srat_walk_table(srat_parse_entry, &error); | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |