From: Ryan Harper <ryanh@us.ibm.com>
To: Beth Kon <eak@us.ibm.com>
Cc: bochs-developers@lists.sourceforge.net,
eswierk@artisanetworks.com, qemu-devel <qemu-devel@nongnu.org>,
herbszt@gmx.de
Subject: Re: [Qemu-devel] [PATCH] Fix non-ACPI Timer Interrupt Routing
Date: Mon, 13 Apr 2009 20:10:27 -0500 [thread overview]
Message-ID: <20090414011027.GF25977@us.ibm.com> (raw)
In-Reply-To: <49E3D91E.40208@us.ibm.com>
* Elizabeth Kon <eak@us.ibm.com> [2009-04-13 19:35]:
> Replicate ACPI irq0->inti2 override in mp table for non-acpi case.
>
> Signed-off-by: Beth Kon <eak@us.ibm.com>
> diff --git a/bios/BIOS-bochs-latest b/bios/BIOS-bochs-latest
> index ebec71b..82d7792 100644
> Binary files a/bios/BIOS-bochs-latest and b/bios/BIOS-bochs-latest differ
> diff --git a/bios/rombios32.c b/bios/rombios32.c
> index 7be4216..bc17118 100644
> --- a/bios/rombios32.c
> +++ b/bios/rombios32.c
> @@ -1,4 +1,4 @@
> -/////////////////////////////////////////////////////////////////////////
> +////////////////////////////////////////////////////////////////////////
Did you mean to change the number of slashs? =)
> // $Id$
> /////////////////////////////////////////////////////////////////////////
> //
> @@ -1168,6 +1168,10 @@ static void mptable_init(void)
>
> /* irqs */
> for(i = 0; i < 16; i++) {
> +#ifdef BX_QEMU
> + if (i == 2)
> + continue;
> +#endif
I'd think that deserves a comment on why we're skipping i==2.
> putb(&q, 3); /* entry type = I/O interrupt */
> putb(&q, 0); /* interrupt type = vectored interrupt */
> putb(&q, 0); /* flags: po=0, el=0 */
> @@ -1175,7 +1179,11 @@ static void mptable_init(void)
> putb(&q, 0); /* source bus ID = ISA */
> putb(&q, i); /* source bus IRQ */
> putb(&q, ioapic_id); /* dest I/O APIC ID */
> +#ifdef BX_QEMU
> + putb(&q, i == 0 ? 2 : i); /* dest I/O APIC interrupt in */
> +#else
> putb(&q, i); /* dest I/O APIC interrupt in */
> +#endif
> }
> /* patch length */
> len = q - mp_config_table;
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
next prev parent reply other threads:[~2009-04-14 1:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 0:30 [Qemu-devel] [PATCH] Fix non-ACPI Timer Interrupt Routing Beth Kon
2009-04-14 1:10 ` Ryan Harper [this message]
2009-04-14 13:43 ` Beth Kon
2009-04-14 7:32 ` Stanislav
2009-04-14 14:20 ` Beth Kon
2009-04-14 14:56 ` Stanislav
2009-04-14 16:19 ` Beth Kon
2009-04-19 21:23 ` Sebastian Herbszt
2009-04-20 18:06 ` Beth Kon
2009-04-21 22:22 ` [Qemu-devel] " Sebastian Herbszt
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=20090414011027.GF25977@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=bochs-developers@lists.sourceforge.net \
--cc=eak@us.ibm.com \
--cc=eswierk@artisanetworks.com \
--cc=herbszt@gmx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.