From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA4Mu-0001Mn-Gd for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:19:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA4Mt-0001ML-5E for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:19:24 -0500 Received: from [199.232.76.173] (port=53659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA4Ms-0001ME-TS for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:19:22 -0500 Received: from ug-out-1314.google.com ([66.249.92.170]:14504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LA4Mt-0005Ly-11 for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:19:23 -0500 Received: by ug-out-1314.google.com with SMTP id 29so872ugc.36 for ; Tue, 09 Dec 2008 07:19:20 -0800 (PST) From: "Stanislav" References: <20081127110220.25353.83454.stgit@dhcp-1-237.tlv.redhat.com> <20081127110225.25353.57932.stgit@dhcp-1-237.tlv.redhat.com> <20081207025738.GA27991@morn.localdomain> <20081209133844.GA5555@redhat.com> In-Reply-To: <20081209133844.GA5555@redhat.com> Date: Tue, 9 Dec 2008 17:12:23 +0200 Message-ID: <004301c95a10$8b75cea0$a2616be0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Content-Language: en-us Subject: [Qemu-devel] RE: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT. Handle resume event in the BIOS. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gleb Natapov' , bochs-developers@lists.sourceforge.net Cc: 'Kevin O'Connor' , qemu-devel@nongnu.org Sebastian, Kevin, Let me know if any of the patches here should be integrated to Bochs ... Stanislav -----Original Message----- From: Gleb Natapov [mailto:gleb@redhat.com] Sent: Tuesday, December 09, 2008 3:39 PM To: bochs-developers@lists.sourceforge.net Cc: Kevin O'Connor; qemu-devel@nongnu.org Subject: Re: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT. Handle resume event in the BIOS. On Sat, Dec 06, 2008 at 09:57:38PM -0500, Kevin O'Connor wrote: > Also, wouldn't this corrupt memory used by the stack (the stack gets > set to 0xfffe, and s3_post has call insns in it)? Here is the patch to set stack pointer to a different value on S3 resume: Signed-off-by: Gleb Natapov diff --git a/bios/rombios.c b/bios/rombios.c index 7a9c1fd..8e1d3ec 100644 --- a/bios/rombios.c +++ b/bios/rombios.c @@ -9114,6 +9114,7 @@ retf_post_0x467: retf s3_post: + mov sp, #0xffe #if BX_ROMBIOS32 call rombios32_init #endif -- Gleb. ---------------------------------------------------------------------------- -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ bochs-developers mailing list bochs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bochs-developers