Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-36
[coreboot.git] / src / mainboard / ibm / e325 / auto.c
index dbbcbf597b75d54744800cc54bdacf3d70b09cf6..b1c9e772d561a0ff1ea558763a27ee474a3c0578 100644 (file)
@@ -158,16 +158,21 @@ static void main(unsigned long bist)
        };
 
        int needs_reset;
+        unsigned nodeid;
+
        if (bist == 0) {
                /* Skip this if there was a built in self test failure */
                amd_early_mtrr_init();
                enable_lapic();
                init_timer();
+
+                nodeid = lapicid() & 0xf;
+
                /* Has this cpu already booted? */
-               if (cpu_init_detected()) {
+               if (cpu_init_detected(nodeid)) {
                        asm volatile ("jmp __cpu_reset");
                }
-               distinguish_cpu_resets();
+               distinguish_cpu_resets(nodeid);
                if (!boot_cpu()) {
                        stop_this_cpu();
                }