qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Interrupt request info


From: Alessandro Corradi
Subject: Re: [Qemu-devel] Interrupt request info
Date: Sat, 11 Nov 2006 12:32:12 +0100

Thank you very much,
But I don't understand what the first parameter is on pic_set_irq_new...
I tried anyway to implement my hw with pic_set_irq, but in qemu console I didn't see my irq (13) with info irq.
I tried to raise it: pic_set_irq(s->irq,1);

What I need to do to raise irq correctly with pic_set_irq_new specially the first parameter)?

Thank you

2006/11/2, Paul Brook <address@hidden>:
On Wednesday 01 November 2006 23:25, Roger Lathrop wrote:
> Alessandro,
>
> All you should need to do to raise an IRQ in your code is:
> pic_set_irq(s->irq,1);
>
> When the irq is serviced (in one of your ioport traps, I would assume),
> knock the irq down:
> pic_set_irq(s->irq,0);

No. You should use pic_set_irq_new. Otherwise your code will break on machines
with multiple interrupt controllers.

Paul


_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]