summaryrefslogtreecommitdiffstats
path: root/hw/i8254.c
diff options
context:
space:
mode:
authorJan Kiszka2011-02-19 18:56:22 +0100
committerAurelien Jarno2011-02-21 15:46:53 +0100
commitee951a37d8873bff7aa58e23222dfd984111b6cb (patch)
treec8304bedb44ce8b6f69877547c34d521923b74eb /hw/i8254.c
parentPS/2 keyboard Scancode Set 3 support (diff)
downloadqemu-ee951a37d8873bff7aa58e23222dfd984111b6cb.tar.gz
qemu-ee951a37d8873bff7aa58e23222dfd984111b6cb.tar.xz
qemu-ee951a37d8873bff7aa58e23222dfd984111b6cb.zip
isa-bus: Remove bogus IRQ sharing check
Nothing prevented IRQ sharing on the ISA bus in principle. Not all boards supported this, neither each and every card nor driver and OS. Still, there existed valid IRQ sharing scenarios, (at least) two of them can also be found in QEMU: >2 PC UARTs and the PREP IDE buses. So remove this artificial restriction from our ISA model. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/i8254.c')
-rw-r--r--hw/i8254.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i8254.c b/hw/i8254.c
index 680caabf3c..eaf5d3e174 100644
--- a/hw/i8254.c
+++ b/hw/i8254.c
@@ -514,7 +514,7 @@ static int pit_initfn(ISADevice *dev)
s = &pit->channels[0];
/* the timer 0 is connected to an IRQ */
s->irq_timer = qemu_new_timer(vm_clock, pit_irq_timer, s);
- s->irq = isa_reserve_irq(pit->irq);
+ s->irq = isa_get_irq(pit->irq);
register_ioport_write(pit->iobase, 4, 1, pit_ioport_write, pit);
register_ioport_read(pit->iobase, 3, 1, pit_ioport_read, pit);