[Cbe-oss-dev] [PATCH 28/28]MARS/adjust stack

Yuji Mano yuji.mano at am.sony.com
Fri Feb 6 13:33:26 EST 2009


Adjust the kernel area to be 12K and task module area to be 4K.
Tasks are still loaded at 0x4000.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
 base/include/common/mars/workload_types.h |    2 +-
 base/src/mpu/kernel/Makefile.am           |    2 +-
 samples/config.mk                         |    2 +-
 task/src/mpu/module/Makefile.am           |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

--- a/base/include/common/mars/workload_types.h
+++ b/base/include/common/mars/workload_types.h
@@ -51,7 +51,7 @@
  * \ingroup group_mars_workload_module
  * \brief Base address of workload module
  */
-#define MARS_WORKLOAD_MODULE_BASE_ADDR		0x2800
+#define MARS_WORKLOAD_MODULE_BASE_ADDR		0x3000
 
 /**
  * \ingroup group_mars_workload_module
--- a/base/src/mpu/kernel/Makefile.am
+++ b/base/src/mpu/kernel/Makefile.am
@@ -48,7 +48,7 @@ if DEBUG
 else
  extra_cppflags += "-DNDEBUG"
  # release kernel is 10K
- extra_ldflags += -Wl,--defsym=__stack=0x027f0
+ extra_ldflags += -Wl,--defsym=__stack=0x02ff0
  CFLAGS += -Os
 endif
 
--- a/samples/config.mk
+++ b/samples/config.mk
@@ -37,7 +37,7 @@ SPU_LDFLAGS = -lmars_base -Wl,-N -Wl,-gc
 SPU_WM_CFLAGS = $(SPU_CFLAGS)
 SPU_WM_LDFLAGS = \
 	-Wl,--defsym=__stack=0x3ff0 \
-	-Wl,--section-start,.init=0x2800 \
+	-Wl,--section-start,.init=0x3000 \
 	-Wl,--entry,mars_module_entry -Wl,-u,mars_module_entry \
 	$(SPU_LDFLAGS)
 
--- a/task/src/mpu/module/Makefile.am
+++ b/task/src/mpu/module/Makefile.am
@@ -48,7 +48,7 @@ if DEBUG
 else
  extra_cppflags += "-DNDEBUG"
  # release kernel is 10K
- extra_ldflags += -Wl,--defsym=__stack=0x3ff0 -Wl,--section-start,.init=0x2800
+ extra_ldflags += -Wl,--defsym=__stack=0x3ff0 -Wl,--section-start,.init=0x3000
  CFLAGS += -Os
 endif
 







More information about the cbe-oss-dev mailing list