[coreboot] [commit] r6581 - trunk/src/northbridge/amd/agesa_wrapper/family14
repository service
svn at coreboot.org
Sun May 15 23:45:48 CEST 2011
Author: mjones
Date: Sun May 15 23:45:46 2011
New Revision: 6581
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6581
Log:
Build device paths for AP cores so that coreboot will report them to the OS.
Signed-off-by: Scott Duplichan <scott at notabs.org>
Acked-by: Marc Jones <marcj303 at gmail.com>
Modified:
trunk/src/northbridge/amd/agesa_wrapper/family14/northbridge.c
Modified: trunk/src/northbridge/amd/agesa_wrapper/family14/northbridge.c
==============================================================================
--- trunk/src/northbridge/amd/agesa_wrapper/family14/northbridge.c Sun May 15 23:41:00 2011 (r6580)
+++ trunk/src/northbridge/amd/agesa_wrapper/family14/northbridge.c Sun May 15 23:45:46 2011 (r6581)
@@ -788,7 +788,22 @@
static void cpu_bus_init(device_t dev)
{
+ struct device_path cpu_path;
+ device_t cpu;
+ int apic_id;
+
initialize_cpus(dev->link_list);
+
+ /* Build the AP cpu device path(s) */
+ for (apic_id = 1; apic_id < CONFIG_MAX_CPUS; apic_id++) {
+ cpu_path.type = DEVICE_PATH_APIC;
+ cpu_path.apic.apic_id = apic_id;
+ cpu = alloc_dev(dev->link_list, &cpu_path);
+ if (!cpu) return;
+ cpu->enabled = 1;
+ cpu->path.apic.node_id = 0;
+ cpu->path.apic.core_id = apic_id;
+ }
}
More information about the coreboot
mailing list