From 74e2bbd76d23915203b242f25eebf8a44be7f4b6 Mon Sep 17 00:00:00 2001 From: mcayland Date: Sun, 2 Jan 2011 00:05:51 +0000 Subject: [PATCH] Reduce memory of the Forth machine to 16k. Since this memory is only being used by alloc-mem and free-mem then the majority of memory allocations will not actually be taken from this pool but from the C malloc()/free() implementations instead. Signed-off-by: Mark Cave-Ayland Tested-by: Blue Swirl Reviewed-by: Blue Swirl git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@999 f158a5a8-5612-0410-a976-696ce0be7e32 --- arch/sparc32/ldscript | 4 ++-- arch/sparc32/openbios.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sparc32/ldscript b/arch/sparc32/ldscript index a95ef68..da94a56 100644 --- a/arch/sparc32/ldscript +++ b/arch/sparc32/ldscript @@ -12,8 +12,8 @@ BASE_ADDR = 0xffd00000; /* 16KB stack */ STACK_SIZE = 16384; -/* 256k general alloc + 256k Forth dictionary + 128k Forth memory */ -VMEM_SIZE = (256 + 256 + 128) * 1024; +/* 256k general alloc + 256k Forth dictionary + 16k Forth memory */ +VMEM_SIZE = (256 + 256 + 16) * 1024; IOMEM_SIZE = 256 * 1024 + 768 * 1024; SECTIONS diff --git a/arch/sparc32/openbios.c b/arch/sparc32/openbios.c index 1c86752..1419468 100644 --- a/arch/sparc32/openbios.c +++ b/arch/sparc32/openbios.c @@ -26,7 +26,7 @@ #define NO_QEMU_PROTOS #include "arch/common/fw_cfg.h" -#define MEMORY_SIZE (128*1024) /* 16K ram for hosted system */ +#define MEMORY_SIZE (16*1024) /* 16K ram for hosted system */ #define DICTIONARY_SIZE (256*1024) /* 256K for the dictionary */ #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) -- 2.11.4.GIT