Received: from eggs.gnu.org ([208.118.235.92]:59520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRsYH-0000C0-3e for qemu-devel@nongnu.org; Tue, 08 May 2012 18:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRsYF-0000jd-7G for qemu-devel@nongnu.org; Tue, 08 May 2012 18:06:36 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:33803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRsYF-0000jQ-3i for qemu-devel@nongnu.org; Tue, 08 May 2012 18:06:35 -0400 Received: by qcsc20 with SMTP id c20so2754308qcs.4 for ; Tue, 08 May 2012 15:06:32 -0700 (PDT) Date: Tue, 8 May 2012 18:06:31 -0400 From: Kevin O'Connor Message-ID: <20120508220631.GA28784@morn.localdomain> References: <1336406325.86421.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508005521.GA14087@morn.localdomain> <1336495676.9684.YahooMailNeo@web130104.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: <1336495676.9684.YahooMailNeo@web130104.mail.mud.yahoo.com> Subject: Re: [Qemu-devel] 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 Tue, May 08, 2012 at 09:47:56AM -0700, Alain Ribière wrote: > Thanks for your answer. > > Here is the debug log in attachement. > I disabled the debug on the screen shot I sent because I noticed I could get a bit more memory without it. > With the debug on, I got : > Banked Window  416K at 3800:0 segment > and a free memory of 15680K > > I'll try to find what confuses C-DOS. It reacts a bit strangely... > When I add or remove options from the SeaBIOS, the memory avalaible > change and the size of banked window changes too. So I hoped there was a way to have enough memory to run my application... The options don't impact SeaBIOS' memory usage, so this reafirms my guess that what you are seeing is a secondary effect. As a guess, this could be stack usage - some old program call the bios with very small stacks and if the stack overflows silent corruption can occur. The fact that you're seeing different memory layouts with random changes to config options could be due to different options causing the compiler to layout the stack slightly differently and thus causing slightly different corruption - just a guess. The other thing I noticed with your C-DOS image is that it doesn't know about the EBDA and uses that memory for its own purposes. Thus, the seabios runtime usage of the ebda along with c-dos could cause conflicts. I don't think this is the cause of your current issue though as some moving the ebda in some quick tests I ran doesn't seem to impact the output of "stop". > Otherwise, I will have to stuck with Qemu 0.11 and PC-BIOS. > > Do you know if there is any DOS utility to get the memory map ? I'm not familiar with DOS utilities. You could ask on the freedos mailing list. -Kevin