aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-05-06 16:56:22 +0300
committerAvi Kivity <avi@qumranet.com>2007-05-06 18:44:21 +0300
commitdc6e4fa394de47bc0674ec46287acb21f059a1ea (patch)
treefb62afa0e05fdd3b90639cc0c6b8bdbc711b977e
parent82234dd28a74d8c4dd17a92034d1dcbba5cd5bf9 (diff)
Re-initialize apic LVT_INT0 register on resetkvm-23
this really ought to be done by the bios, but...
-rw-r--r--hw/apic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 0b73233ba..570422475 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -804,6 +804,13 @@ static void apic_reset(void *opaque)
{
APICState *s = opaque;
apic_init_ipi(s);
+
+ /*
+ * LINT0 delivery mode is set to ExtInt at initialization time
+ * typically by BIOS, so PIC interrupt can be delivered to the
+ * processor when local APIC is enabled.
+ */
+ s->lvt[APIC_LVT_LINT0] = 0x700;
}
static CPUReadMemoryFunc *apic_mem_read[3] = {