Mercurial > hg > Members > kono > Cerium
diff TaskManager/kernel/ppe/HTask.h @ 787:5df90e02e34f
fix Bulk
author | yutaka@localhost.localdomain |
---|---|
date | Sat, 24 Apr 2010 17:25:46 +0900 |
parents | c42cab5ad4c3 |
children | 821ab210cafa |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/HTask.h Sat Apr 24 15:24:33 2010 +0900 +++ b/TaskManager/kernel/ppe/HTask.h Sat Apr 24 17:25:46 2010 +0900 @@ -5,6 +5,7 @@ #include "types.h" #include "Task.h" #include "TaskQueueInfo.h" +#include <stdio.h> class TaskManagerImpl; class SchedTask; @@ -66,10 +67,18 @@ t->set_outData_t(out_index++, addr,size); } void set_inData_t(int index, memaddr addr, int size) { + if ((unsigned long)addr&0xf) { + printf("inData is not aligned. command = %d, index = %d, addr = 0x%lx, size = %d\n", + command, index, (unsigned long)addr, size); + } Task *t = (Task*)rbuf; t->set_inData_t(index, addr,size); } void set_outData_t(int index, memaddr addr, int size) { + if ((unsigned long)addr&0xf) { + printf("inData is not aligned. command = %d, index = %d, addr = 0x%lx, size = %d\n", + command, index, (unsigned long)addr, size); + } Task *t = (Task*)rbuf; t->set_inData_t(index, addr,size); }