|
@@ -918,6 +918,8 @@ int __init APIC_init_uniprocessor(void)
|
|
|
|
|
|
verify_local_APIC();
|
|
|
|
|
|
+ connect_bsp_APIC();
|
|
|
+
|
|
|
physid_set_mask_of_physid(boot_cpu_physical_apicid, &phys_cpu_present_map);
|
|
|
apic_write(APIC_ID, SET_APIC_ID(boot_cpu_physical_apicid));
|
|
|
|
|
@@ -999,6 +1001,14 @@ asmlinkage void smp_error_interrupt(void)
|
|
|
irq_exit();
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * * connect_bsp_APIC - attach the APIC to the interrupt system
|
|
|
+ * */
|
|
|
+void __init connect_bsp_APIC(void)
|
|
|
+{
|
|
|
+ enable_apic_mode();
|
|
|
+}
|
|
|
+
|
|
|
void disconnect_bsp_APIC(int virt_wire_setup)
|
|
|
{
|
|
|
/* Go back to Virtual Wire compatibility mode */
|