Received: from eggs.gnu.org ([208.118.235.92]:48179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCc7-0001Pb-Ok for qemu-devel@nongnu.org; Fri, 20 Jul 2012 08:47:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsCc2-0000QW-Rg for qemu-devel@nongnu.org; Fri, 20 Jul 2012 08:47:23 -0400 Received: from mail-vb0-f45.google.com ([209.85.212.45]:40480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCc2-0000Q6-Ok for qemu-devel@nongnu.org; Fri, 20 Jul 2012 08:47:18 -0400 Received: by vbbfn1 with SMTP id fn1so2954832vbb.4 for ; Fri, 20 Jul 2012 05:47:18 -0700 (PDT) Date: Fri, 20 Jul 2012 08:47:16 -0400 From: Kevin O'Connor Message-ID: <20120720124716.GA13740@morn.localdomain> References: <1342714503-6673-1-git-send-email-kraxel@redhat.com> <1342714503-6673-3-git-send-email-kraxel@redhat.com> <20120720005534.GC24578@morn.localdomain> <500909B1.2060505@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <500909B1.2060505@redhat.com> Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH 2/2] lsi53c895a boot support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: seabios@seabios.org, qemu-devel@nongnu.org On Fri, Jul 20, 2012 at 09:33:05AM +0200, Gerd Hoffmann wrote: > Hi, > > >> + /* FIXME: probably not the best idea to have this on the stack ... */ > >> + u32 script[] = { > > > > Several places in the code DMA to the stack already (usb-ehci, > > usb-uhci, ata). > > My concern isn't DMA'ing to the stack, but the size of the script and > possible stack overruns. But maybe it is a moot point with the stack > switching added to seabios recently. Disk access code will have at least a 4K stack in 32bit mode and a 2K stack in 16bit mode. -Kevin