From: Ian Campbell Subject: Re: [PATCH 1/7] vgabios: Output to Qemu debug port instead of using Bochs one Date: Fri, 4 May 2012 15:04:42 +0100 Message-ID: <1336140282.2361.71.camel@zakaz.uk.xensource.com> References: <1336135010-26940-1-git-send-email-frediano.ziglio@citrix.com> <1336135010-26940-2-git-send-email-frediano.ziglio@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1336135010-26940-2-git-send-email-frediano.ziglio@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Frediano Ziglio Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-05-04 at 13:36 +0100, Frediano Ziglio wrote: > Bios was outputing into port 0xe9 while Qemu use 0x12 0xe9 is also the Xen HVM debug port (see hvm_print_line), don't be confused by the fact that it happens to be the same as the bochs port. Ian. > Signed-off-by: Frediano Ziglio > --- > tools/firmware/vgabios/vgabios.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/firmware/vgabios/vgabios.c b/tools/firmware/vgabios/vgabios.c > index a9dbe00..e0b1ed9 100644 > --- a/tools/firmware/vgabios/vgabios.c > +++ b/tools/firmware/vgabios/vgabios.c > @@ -3811,9 +3811,9 @@ void printf(s) > for (i=0; i nibble = (arg >> (4 * digit)) & 0x000f; > if (nibble <= 9) > - outb(0xe9, nibble + '0'); > + outb(0x12, nibble + '0'); > else > - outb(0xe9, (nibble - 10) + 'A'); > + outb(0x12, (nibble - 10) + 'A'); > digit--; > } > in_format = 0; > @@ -3823,7 +3823,7 @@ void printf(s) > // } > } > else { > - outb(0xe9, c); > + outb(0x12, c); > } > s ++; > }