From: Tomas Hruby Date: Tue, 19 Oct 2010 17:07:19 +0000 (+0000) Subject: BSP apic id X-Git-Tag: v3.2.0~773 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=f42b90806a0372b1ae6642756d285069e57fe331;p=minix.git BSP apic id - BSP apic id used uninitialized causes problems --- diff --git a/kernel/arch/i386/apic.c b/kernel/arch/i386/apic.c index c6f2155fa..b4358e467 100644 --- a/kernel/arch/i386/apic.c +++ b/kernel/arch/i386/apic.c @@ -1092,6 +1092,8 @@ PUBLIC int apic_single_cpu_init(void) return 0; } + bsp_lapic_id = apicid(); + acpi_init(); if (!detect_ioapics()) { diff --git a/kernel/arch/i386/arch_smp.c b/kernel/arch/i386/arch_smp.c index de7f942de..936ed3fe3 100644 --- a/kernel/arch/i386/arch_smp.c +++ b/kernel/arch/i386/arch_smp.c @@ -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();