[Top][All Lists]

[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: Sun, 12 Nov 2006 16:46:00 +0100

I tried with both pic_set_irq and pic_set_irq_new but nothing happen (the irq number is 13 and I verified with info irq in qemu monitor).
I tried also to hack i8259.c and the function is not called (I think).
What the first parameter of pic_set_irq_new is referred to?

Another question: why a new virtual device works anyway without interrupt mechanism? isn't it essential?



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.


Qemu-devel mailing list

reply via email to

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