diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-06 16:56:22 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-06 18:44:21 +0300 |
commit | dc6e4fa394de47bc0674ec46287acb21f059a1ea (patch) | |
tree | fb62afa0e05fdd3b90639cc0c6b8bdbc711b977e | |
parent | 82234dd28a74d8c4dd17a92034d1dcbba5cd5bf9 (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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] = { |