From 7003ba4a88a847707c55d593e517eaa70fc8c63d Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Sat, 16 Oct 2004 06:20:29 +0000 Subject: - First stab at running linuxbios without the old static device tree. Things are close but not quite there yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/x86/lapic/lapic_cpu_init.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cpu/x86/lapic') diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c index 963b1cf729..db0cecbd06 100644 --- a/src/cpu/x86/lapic/lapic_cpu_init.c +++ b/src/cpu/x86/lapic/lapic_cpu_init.c @@ -234,12 +234,12 @@ void secondary_cpu_init(void) stop_this_cpu(); } -static void initialize_other_cpus(device_t root) +static void initialize_other_cpus(struct bus *cpu_bus) { int old_active_count, active_count; device_t cpu; /* Loop through the cpus once getting them started */ - for(cpu = root->link[1].children; cpu ; cpu = cpu->sibling) { + for(cpu = cpu_bus->children; cpu ; cpu = cpu->sibling) { if (cpu->path.type != DEVICE_PATH_APIC) { continue; } @@ -267,7 +267,7 @@ static void initialize_other_cpus(device_t root) udelay(10); active_count = atomic_read(&active_cpus); } - for(cpu = root->link[1].children; cpu; cpu = cpu->sibling) { + for(cpu = cpu_bus->children; cpu; cpu = cpu->sibling) { if (cpu->path.type != DEVICE_PATH_APIC) { continue; } @@ -284,7 +284,7 @@ static void initialize_other_cpus(device_t root) #define initialize_other_cpus(root) do {} while(0) #endif /* CONFIG_SMP */ -void initialize_cpus(device_t root) +void initialize_cpus(struct bus *cpu_bus) { struct device_path cpu_path; struct cpu_info *info; @@ -305,12 +305,12 @@ void initialize_cpus(device_t root) #endif /* Find the device structure for the boot cpu */ - info->cpu = alloc_find_dev(&root->link[1], &cpu_path); + info->cpu = alloc_find_dev(cpu_bus, &cpu_path); /* Initialize the bootstrap processor */ cpu_initialize(); /* Now initialize the rest of the cpus */ - initialize_other_cpus(root); + initialize_other_cpus(cpu_bus); } -- cgit v1.2.3