[Cbe-oss-dev] [PATCH 4/9]MARS: Rename task vaddr define

Yuji Mano yuji.mano at am.sony.com
Sat Oct 18 10:28:53 EST 2008


This renames the MARS_TASK_ELF_VADDR to MARS_TASK_BASE_ADDR.

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

---
 include/common/mars/task_types.h |    6 +++---
 src/host/lib/task.c              |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/include/common/mars/task_types.h
+++ b/include/common/mars/task_types.h
@@ -48,9 +48,9 @@
 
 /**
  * \ingroup group_mars_task
- * \brief Virtual Address of task elf
+ * \brief Base address of task elf
  */
-#define MARS_TASK_ELF_VADDR			0x10000
+#define MARS_TASK_BASE_ADDR			0x10000
 
 /**
  * \ingroup group_mars_task
@@ -130,7 +130,7 @@ struct mars_task_args {
  * to save and restore during a task context switch.
  */
 struct mars_task_context_save_unit {
-	/** address relative to the virtual address of task elf */
+	/** address relative to the base address of task */
 	uint32_t addr;
 	/** size of context save unit */
 	uint32_t size;
--- a/src/host/lib/task.c
+++ b/src/host/lib/task.c
@@ -83,7 +83,7 @@ int mars_task_create(struct mars_context
 
 	if (phdr->p_type != PT_LOAD)
 		return MARS_ERROR_FORMAT;
-	if (phdr->p_vaddr != MARS_TASK_ELF_VADDR)
+	if (phdr->p_vaddr != MARS_TASK_BASE_ADDR)
 		return MARS_ERROR_FORMAT;
 
 	/* begin process to add the task to the workload queue */





More information about the cbe-oss-dev mailing list