[Cbe-oss-dev] [PATCH 10/17]MARS/core: Issue spu sync

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


Issue an spu_sync() command after the workload module code is dma'd into MPU
storage and before the code inside MPU storage is executed.

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

---
 core/src/mpu/kernel/kernel.c |    3 +++
 1 file changed, 3 insertions(+)

--- a/core/src/mpu/kernel/kernel.c
+++ b/core/src/mpu/kernel/kernel.c
@@ -341,6 +341,9 @@ static int __attribute__((noinline)) sch
 		"stqa	$sp, _kernel_stack;"
 	);
 
+	/* sync before executing loaded code */
+	spu_sync();
+
 	/* call module entry function */
 	((module_entry)workload.module.entry)(&kernel_syscalls);
 






More information about the cbe-oss-dev mailing list