From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NR99W-0001GU-Ms for qemu-devel@nongnu.org; Sat, 02 Jan 2010 13:56:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NR99R-0001Eg-UO for qemu-devel@nongnu.org; Sat, 02 Jan 2010 13:56:42 -0500 Received: from [199.232.76.173] (port=44899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR99R-0001Ea-S3 for qemu-devel@nongnu.org; Sat, 02 Jan 2010 13:56:37 -0500 Received: from terminus.zytor.com ([198.137.202.10]:42363) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NR99R-0005G8-VV for qemu-devel@nongnu.org; Sat, 02 Jan 2010 13:56:38 -0500 Message-ID: <4B3F96DD.8070503@zytor.com> Date: Sat, 02 Jan 2010 10:56:29 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] debugcon: support for debugging consoles (e.g. Bochs port 0xe9) References: <1262123496-12007-1-git-send-email-hpa@linux.intel.com> <20091230164946.GA9858@morn.localdomain> <4B3EB763.4030000@zytor.com> <20100102175354.GA17268@morn.localdomain> In-Reply-To: <20100102175354.GA17268@morn.localdomain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: qemu-devel@nongnu.org On 01/02/2010 09:53 AM, Kevin O'Connor wrote: > On Fri, Jan 01, 2010 at 07:02:59PM -0800, H. Peter Anvin wrote: >> On 12/30/2009 08:49 AM, Kevin O'Connor wrote: >>> SeaBIOS writes debugging info to port 0x0402. Unfortunately, qemu has >>> to be recompiled in order to display this info. Will your patch >>> enable one to get at the 0x0402 data without recompiling? >> >> Incidentally, it's somewhat unusual choice of ports... port 0x80 is the >> normal port for BIOSes to display debugging information on. > > Port 0x0402 is a carry over from Bochs bios. > > Port 0x80 isn't generally used to emit a stream of ascii data, and it > can be used by other programs besides the bios. I'd guess that's why > Bochs chose a different port. > > -Kevin Makes sense. Either way, it works with my patch looking something like: -chardev stdio,id=seabios \ -device isa-debugcon,iobase=0x402,chardev=seabios ... should do the job. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.