qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] RE: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT.


From: Stanislav
Subject: [Qemu-devel] RE: [Bochs-developers] [PATCH v5 1/5] Add S3 state to DSDT. Handle resume event in the BIOS.
Date: Tue, 9 Dec 2008 17:12:23 +0200

Sebastian, Kevin, Let me know if any of the patches here should be
integrated to Bochs ...

 Stanislav

-----Original Message-----
From: Gleb Natapov [mailto:address@hidden 
Sent: Tuesday, December 09, 2008 3:39 PM
To: address@hidden
Cc: Kevin O'Connor; address@hidden
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 <address@hidden>

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
address@hidden
https://lists.sourceforge.net/lists/listinfo/bochs-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]