Received: from eggs.gnu.org ([208.118.235.92]:53438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSHUw-0007fG-Sq for qemu-devel@nongnu.org; Wed, 09 May 2012 20:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSHUv-0001DA-0r for qemu-devel@nongnu.org; Wed, 09 May 2012 20:44:50 -0400 Received: from mail-qa0-f52.google.com ([209.85.216.52]:52678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSHUu-0001CG-TS for qemu-devel@nongnu.org; Wed, 09 May 2012 20:44:48 -0400 Received: by qabj34 with SMTP id j34so1202830qab.11 for ; Wed, 09 May 2012 17:44:46 -0700 (PDT) Date: Wed, 9 May 2012 20:44:45 -0400 From: Kevin O'Connor Message-ID: <20120510004445.GA19059@morn.localdomain> References: <1336406325.86421.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508005521.GA14087@morn.localdomain> <1336495676.9684.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508220631.GA28784@morn.localdomain> <1336579073.87968.YahooMailNeo@web130105.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1336579073.87968.YahooMailNeo@web130105.mail.mud.yahoo.com> Subject: Re: [Qemu-devel] Re : Re : [SeaBIOS] : Memory problem with Qemu/SeaBIOS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alain =?iso-8859-1?Q?Ribi=E8re?= Cc: "seabios@seabios.org" , "qemu-devel@nongnu.org" On Wed, May 09, 2012 at 08:57:53AM -0700, Alain Ribičre wrote: > Tanks for your answer. > > > I have to apologize, I made a mistake. I rechecked my application and used git bisect. > So I found that this is not a SeaBIOS issue (actually it's more a C-DOS issues...). My problem comes from this Qemu commit : > > 49669fc551e0ccd2310a9584a9b7343a0bcae477 is the first bad commit > commit 49669fc551e0ccd2310a9584a9b7343a0bcae477 [...] > > Also I found the theorical memory map of the C-DOS in the documentation of my legacy application : > start         end > > 000000    9FFFF    Program area > > 0A0000    0BFFFF    Video memory > > 0C00000    0C7FFF    BIOS graphic card > 0C8000    0CBFFF    BIOS cache controller > 0CC000    0CFFFF    BIOS removable disk > 0D0000    0D3FFF    BIOS network adapter > 0D4000    0EFFFF    CDOS system > 0F0000    0FFFFF    ROM BIOS > > I wonder what is the CDOS system at 0D4000... It seems a bit strange. Very odd. This is still controlled by seabios. Indeed, if I apply this (clearly incorrect) patch to seabios: diff --git a/src/shadow.c b/src/shadow.c index c0c8cc2..73c0670 100644 --- a/src/shadow.c +++ b/src/shadow.c @@ -83,7 +83,7 @@ make_bios_readonly_intel(u16 bdf, u32 pam0) for (i=0; i<6; i++) { u32 mem = BUILD_ROM_START + i * 32*1024; u32 pam = pam0 + 1 + i; - if (RomEnd <= mem + 16*1024) { + if (0 && RomEnd <= mem + 16*1024) { if (RomEnd > mem) pci_config_writeb(bdf, pam, 0x31); break; Then the C-DOS image you posted seems happier. Basically, if C-DOS is allowed to write to the e-segment then it seems to do weird things. > > I do not understand why this commit affects the C-DOS memory allocation. > But you're probably right, C-DOS is using memory addresses he shouldn't for it's own purpose causing conflicts... > > If you have any idea. > > > Thanks, and sorry again for the wrong issue (I will remove the SeaBIOS mailing list in the future mails)... > This is still in the SeaBIOS realm. (Though I'm thinking it's really a C-DOS bug.) -Kevin