BSP apic id

- BSP apic id used uninitialized causes problems
This commit is contained in:
Tomas Hruby 2010-10-19 17:07:19 +00:00
parent e6b1a30a26
commit f42b90806a
2 changed files with 4 additions and 0 deletions

View file

@ -1092,6 +1092,8 @@ PUBLIC int apic_single_cpu_init(void)
return 0;
}
bsp_lapic_id = apicid();
acpi_init();
if (!detect_ioapics()) {

View 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();