From 85f0796b14aff77242807615194b4ea68e558681 Mon Sep 17 00:00:00 2001 From: Avi Kivity <avi@cloudius-systems.com> Date: Mon, 11 Feb 2013 19:37:22 +0200 Subject: [PATCH] apic: mask LVT0 interrupts This avoids spurious interrupts from the PIC (even though it has been disabled). --- arch/x64/apic.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x64/apic.cc b/arch/x64/apic.cc index e067a8d7c..e3cb8da92 100644 --- a/arch/x64/apic.cc +++ b/arch/x64/apic.cc @@ -22,6 +22,7 @@ apic_driver::~apic_driver() void apic_driver::software_enable() { + write(apicreg::LVT0, 0); write(apicreg::SPIV, 0x1ff); // FIXME: allocate real vector } @@ -29,6 +30,7 @@ x2apic::x2apic() : apic_driver() { enable(); + software_enable(); } void x2apic::init_on_ap() -- GitLab