]> Zhao Yanbai Git Server - minix.git/commitdiff
BSP apic id
authorTomas Hruby <tom@minix3.org>
Tue, 19 Oct 2010 17:07:19 +0000 (17:07 +0000)
committerTomas Hruby <tom@minix3.org>
Tue, 19 Oct 2010 17:07:19 +0000 (17:07 +0000)
- BSP apic id used uninitialized causes problems

kernel/arch/i386/apic.c
kernel/arch/i386/arch_smp.c

index c6f2155fad5732567f5cbeff7dd3616beb411971..b4358e467f0a8efc9d0b60cb48bbac220ce71bf8 100644 (file)
@@ -1092,6 +1092,8 @@ PUBLIC int apic_single_cpu_init(void)
                return 0;
        }
 
+       bsp_lapic_id = apicid();
+
        acpi_init();
 
        if (!detect_ioapics()) {
index de7f942de8515d6e5799d173d0ebf3af9d910545..936ed3fe3d048ebb34afb66f639b7e19e7888c8a 100644 (file)
@@ -317,6 +317,8 @@ PUBLIC void smp_init (void)
                printf("ERROR : failed to initialize BSP Local APIC\n");
                goto uniproc_fallback;
        }
+
+       bsp_lapic_id = apicid();
        
        acpi_init();