Author: mcayland Date: Thu Jul 14 16:37:34 2011 New Revision: 1045 URL: http://tracker.coreboot.org/trac/openbios/changeset/1045
Log: Fix Fcode table initialisation on SPARC32.
Increase the Forth machine memory to 128K (also requiring a corresponding increase in OFMEM to 384K) to allow enough space for the Fcode tables to be initialised, and hence allow Fcode to be executed under SPARC32.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk Acked-by: Bob Breuer breuerr@mc.net
Modified: trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c trunk/openbios-devel/arch/sparc32/openbios.c
Modified: trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c ============================================================================== --- trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Fri Jun 17 02:55:04 2011 (r1044) +++ trunk/openbios-devel/arch/sparc32/ofmem_sparc32.c Thu Jul 14 16:37:34 2011 (r1045) @@ -21,7 +21,7 @@
#define OF_MALLOC_BASE ((char*)OFMEM + ALIGN_SIZE(sizeof(ofmem_t), 8))
-#define MEMSIZE (256 * 1024) +#define MEMSIZE (384 * 1024) static union { char memory[MEMSIZE]; ofmem_t ofmem;
Modified: trunk/openbios-devel/arch/sparc32/openbios.c ============================================================================== --- trunk/openbios-devel/arch/sparc32/openbios.c Fri Jun 17 02:55:04 2011 (r1044) +++ trunk/openbios-devel/arch/sparc32/openbios.c Thu Jul 14 16:37:34 2011 (r1045) @@ -27,7 +27,7 @@ #include "arch/common/fw_cfg.h" #include "libopenbios/ofmem.h"
-#define MEMORY_SIZE (16*1024) /* 16K ram for hosted system */ +#define MEMORY_SIZE (128*1024) /* 128K ram for hosted system */ #define UUID_FMT "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x" #define FW_CFG_SUN4M_DEPTH (FW_CFG_ARCH_LOCAL + 0x00)