cvs commit: src/sys/i386/acpica acpi_wakecode.S

User Takawata takawata at axe-inc.co.jp
Mon Oct 27 00:03:45 PST 2003


In message <200310270626.h9R6QpOI039373 at repoman.freebsd.org>, Nate Lawson wrote
:
>njl         2003/10/26 22:26:51 PST
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/i386/acpica      acpi_wakecode.S 
>  Log:
>  Call the VESA reset BIOS vector on the resume path.  This may help displays
>  after resume.  I have not found it to break anything.
>  
>  Revision  Changes    Path
>  1.4       +9 -0      src/sys/i386/acpica/acpi_wakecode.S

How about initializing stack?

Index: acpi_wakecode.S
===================================================================
RCS file: /home/ncvs/src/sys/i386/acpica/acpi_wakecode.S,v
retrieving revision 1.4
diff -u -r1.4 acpi_wakecode.S
--- acpi_wakecode.S	27 Oct 2003 06:26:51 -0000	1.4
+++ acpi_wakecode.S	27 Oct 2003 08:02:01 -0000
@@ -31,6 +31,7 @@
 #define LOCORE
 
 #include <machine/specialreg.h>
+#include <machine/param.h>
 
 	.align 4
 	.code16
@@ -42,7 +43,10 @@
 	movw	%cs,%ax
 	movw	%ax,%ds
 	movw	%ax,%ss
-	
+
+	/* Assume 1 page is allocated for wakecode from the entry*/
+	movw	$PAGE_SIZE, %sp
+
 	/*
 	 * Re-initialize video BIOS.  Restore DS and SS from CS in
 	 * case the BIOS modified them.


More information about the cvs-src mailing list