From: "Alessandro Corradi" <ale.corradi@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: Fwd: [Qemu-devel] Interrupt request info
Date: Mon, 6 Nov 2006 15:39:09 +0100 [thread overview]
Message-ID: <b921df970611060639u31e3e28blad04c67fd8ecfad2@mail.gmail.com> (raw)
In-Reply-To: <b921df970611040808m4c446c75q6c2771442a9d54d3@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]
---------- Forwarded message ----------
From: Alessandro Corradi <ale.corradi@gmail.com>
Date: 4-nov-2006 17.08
Subject: Re: [Qemu-devel] Interrupt request info
To: qemu-devel@nongnu.org
Thank you very much for the answer,
so the only think to do to raise correctly an interrupt (I think) is only to
raise it when a read funciton is completed (in case of my simple memory)
because it will alarm the process in waiting status to read the value in the
register.
the workaround of a read operation of a cell of this memory is:
1)write address of the cell that I want to read in the address register,
2)send the execution request to get the value of the cell indicated by the
address reg (write on the command register the read opcode),
3)wait for control register response untill read operation is executed.
4)read the data register.
so I think that interrupt request must be between point 3 and 4.
Do you agree with my consideration?
I hope that writed something understandable :)
Thanks
Ale
2006/11/2, Paul Brook <paul@codesourcery.com>:
>
> 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
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
[-- Attachment #2: Type: text/html, Size: 2563 bytes --]
next prev parent reply other threads:[~2006-11-06 14:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200611011205.1gFjwA1qs3Nl3pX2@cave.mail.atl.earthlink.net>
2006-11-01 23:25 ` Re:[Qemu-devel] Interrupt request info Roger Lathrop
2006-11-01 23:31 ` [Qemu-devel] " Paul Brook
2006-11-04 16:08 ` Alessandro Corradi
2006-11-06 14:39 ` Alessandro Corradi [this message]
2006-11-11 11:32 ` Alessandro Corradi
2006-11-12 15:46 ` Alessandro Corradi
2006-10-28 9:36 Alessandro Corradi
2006-10-28 19:01 ` Rob Landley
[not found] ` <b921df970610310125gf987001y8ce03fc1fb8ce363@mail.gmail.com>
2006-11-01 9:19 ` Fwd: " Alessandro Corradi
2006-11-01 17:16 ` Paul Brook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b921df970611060639u31e3e28blad04c67fd8ecfad2@mail.gmail.com \
--to=ale.corradi@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).