mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Route IOAPIC interrupts via ISA bus
Instead of calling the IOAPIC from the PIC, raise IOAPIC irqs via the ISA bus. As a side effect, IOAPIC lines 16-23 are enabled. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1452411b25
commit
1632dc6a8f
4 changed files with 13 additions and 26 deletions
|
@ -241,9 +241,10 @@ static CPUWriteMemoryFunc *ioapic_mem_write[3] = {
|
|||
ioapic_mem_writel,
|
||||
};
|
||||
|
||||
IOAPICState *ioapic_init(void)
|
||||
qemu_irq *ioapic_init(void)
|
||||
{
|
||||
IOAPICState *s;
|
||||
qemu_irq *irq;
|
||||
int io_memory;
|
||||
|
||||
s = qemu_mallocz(sizeof(IOAPICState));
|
||||
|
@ -255,6 +256,7 @@ IOAPICState *ioapic_init(void)
|
|||
|
||||
register_savevm("ioapic", 0, 1, ioapic_save, ioapic_load, s);
|
||||
qemu_register_reset(ioapic_reset, s);
|
||||
irq = qemu_allocate_irqs(ioapic_set_irq, s, IOAPIC_NUM_PINS);
|
||||
|
||||
return s;
|
||||
return irq;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue