srat.c (1be4c195db53e8805c97b452118e89e90afd46df) srat.c (45ff071d6ea0271622831a26ca3d3acbe60fb305)
1/*-
2 * Copyright (c) 2010 Hudson River Trading LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 435 unchanged lines hidden (view full) ---

444 phys_avail[idx + 1] = addr - 1;
445
446 /*
447 * We cannot rely on PHYS_TO_DMAP because this code is also used in
448 * i386, so use pmap_mapbios to map the memory, this will end up using
449 * the default memory attribute (WB), and the DMAP when available.
450 */
451 cpus = (struct cpu_info *)pmap_mapbios(addr, size);
1/*-
2 * Copyright (c) 2010 Hudson River Trading LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 435 unchanged lines hidden (view full) ---

444 phys_avail[idx + 1] = addr - 1;
445
446 /*
447 * We cannot rely on PHYS_TO_DMAP because this code is also used in
448 * i386, so use pmap_mapbios to map the memory, this will end up using
449 * the default memory attribute (WB), and the DMAP when available.
450 */
451 cpus = (struct cpu_info *)pmap_mapbios(addr, size);
452 bzero(cpus, size);
452
453 /*
454 * Make a pass over the table to populate the cpus[] and
455 * mem_info[] tables.
456 */
457 srat = acpi_map_table(srat_physaddr, ACPI_SIG_SRAT);
458 error = 0;
459 srat_walk_table(srat_parse_entry, &error);

--- 112 unchanged lines hidden ---
453
454 /*
455 * Make a pass over the table to populate the cpus[] and
456 * mem_info[] tables.
457 */
458 srat = acpi_map_table(srat_physaddr, ACPI_SIG_SRAT);
459 error = 0;
460 srat_walk_table(srat_parse_entry, &error);

--- 112 unchanged lines hidden ---