[OpenBIOS] [commit] r873 - trunk/openbios-devel/arch/sparc64

repository service svn at openbios.org
Sat Oct 2 00:29:17 CEST 2010


Author: mcayland
Date: Sat Oct  2 00:29:16 2010
New Revision: 873
URL: http://tracker.coreboot.org/trac/openbios/changeset/873

Log:
Increase IMAGE_STACK_SIZE to 16K from 8K.

The existing 8K stack used when switching context to run the executable payload was not enough. Increasing the stack to 16K 
solves the issue, preventing the payload from clobbering memory within OpenBIOS as it runs.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>

Modified:
   trunk/openbios-devel/arch/sparc64/context.c

Modified: trunk/openbios-devel/arch/sparc64/context.c
==============================================================================
--- trunk/openbios-devel/arch/sparc64/context.c	Wed Sep 29 22:30:51 2010	(r872)
+++ trunk/openbios-devel/arch/sparc64/context.c	Sat Oct  2 00:29:16 2010	(r873)
@@ -11,7 +11,7 @@
 #include "openbios.h"
 
 #define MAIN_STACK_SIZE 16384
-#define IMAGE_STACK_SIZE 4096*2
+#define IMAGE_STACK_SIZE 4096*4
 
 #define debug printk
 



More information about the OpenBIOS mailing list