[OpenBIOS] [PATCH 05/16] Reduce memory of the Forth machine to 16k.

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Thu Dec 30 19:07:08 CET 2010


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 <mark.cave-ayland at siriusit.co.uk>
---
 openbios-devel/arch/sparc32/ldscript   |    4 ++--
 openbios-devel/arch/sparc32/openbios.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/openbios-devel/arch/sparc32/ldscript b/openbios-devel/arch/sparc32/ldscript
index a95ef68..da94a56 100644
--- a/openbios-devel/arch/sparc32/ldscript
+++ b/openbios-devel/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/openbios-devel/arch/sparc32/openbios.c b/openbios-devel/arch/sparc32/openbios.c
index 1c86752..1419468 100644
--- a/openbios-devel/arch/sparc32/openbios.c
+++ b/openbios-devel/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)
-- 
1.7.2.3




More information about the OpenBIOS mailing list