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