From 69faf5f3773fe187f35d2f7f4b8a161a3e3d1dbc Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 1 Sep 2016 20:23:47 -0600 Subject: [PATCH] Do not disable local apic, it appears to turn off irqs on BSP --- arch/x86_64/src/acpi/local_apic.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/x86_64/src/acpi/local_apic.rs b/arch/x86_64/src/acpi/local_apic.rs index 8c2d760..17f6fb8 100644 --- a/arch/x86_64/src/acpi/local_apic.rs +++ b/arch/x86_64/src/acpi/local_apic.rs @@ -18,10 +18,6 @@ impl LocalApic { x2: false }; - unsafe { wrmsr(IA32_APIC_BASE, rdmsr(IA32_APIC_BASE) & !(1 << 11 | 1 << 10)) }; - - unsafe { wrmsr(IA32_APIC_BASE, rdmsr(IA32_APIC_BASE) | 1 << 11) }; - if CpuId::new().get_feature_info().unwrap().has_x2apic() { unsafe { wrmsr(IA32_APIC_BASE, rdmsr(IA32_APIC_BASE) | 1 << 10) }; apic.x2 = true;