[Cbe-oss-dev] [PATCH 07/17]MARS/core: Rename define module elf vaddr

Yuji Mano yuji.mano at am.sony.com
Wed Dec 3 13:58:58 EST 2008


This renames the MARS_WORKLOAD_MODULE_ELF_VADDR to
MARS_WORKLOAD_MODULE_BASE_ADDR.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
 core/include/common/mars/workload_types.h |    3 +--
 core/src/mpu/kernel/kernel.c              |    4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

--- a/core/include/common/mars/workload_types.h
+++ b/core/include/common/mars/workload_types.h
@@ -40,8 +40,7 @@
 
 #include <stdint.h>
 
-#define MARS_WORKLOAD_MODULE_ELF_VADDR		0x4000  /* elf vaddr */
-
+#define MARS_WORKLOAD_MODULE_BASE_ADDR		0x4000  /* module base addr */
 #define MARS_WORKLOAD_MODULE_SIZE		20	/* size of 20 bytes */
 
 #define MARS_WORKLOAD_CONTEXT_SIZE		128	/* size of 128 bytes */
--- a/core/src/mpu/kernel/kernel.c
+++ b/core/src/mpu/kernel/kernel.c
@@ -327,12 +327,12 @@ static int __attribute__((noinline)) sch
 		return MARS_KERNEL_STATUS_IDLE;
 
 	/* load the exec code into mpu storage from host storage */
-	mars_dma_large_get_and_wait((void *)MARS_WORKLOAD_MODULE_ELF_VADDR,
+	mars_dma_large_get_and_wait((void *)MARS_WORKLOAD_MODULE_BASE_ADDR,
 		workload.module.exec_ea, workload.module.exec_size,
 		MARS_DMA_TAG);
 
 	/* 0 the bss section */
-	memset((void *)MARS_WORKLOAD_MODULE_ELF_VADDR +
+	memset((void *)MARS_WORKLOAD_MODULE_BASE_ADDR +
 		workload.module.exec_size, 0, workload.module.bss_size);
 
 	/* save kernel stack pointer */






More information about the cbe-oss-dev mailing list