diff TaskManager/kernel/ppe/TaskManagerImpl.cc @ 949:5f0135ca75ee draft

word count size fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 02 Aug 2010 15:05:02 +0900
parents 9ed1c4a877ca
children 6ffeb543e8d4
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskManagerImpl.cc	Mon Aug 02 09:36:02 2010 +0900
+++ b/TaskManager/kernel/ppe/TaskManagerImpl.cc	Mon Aug 02 15:05:02 2010 +0900
@@ -59,6 +59,24 @@
     new_task->post_func = noaction;
     new_task->mimpl = this;
     new_task->from = (memaddr)from;
+#ifdef EARLY_TOUCH
+        if (rbuf) {
+	    if ((unsigned long)rbuf&0xf) {
+	      printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
+		     cmd, (unsigned long)rbuf, r_size);
+	    }
+	    char *p = (char *)rbuf; char b = *p;
+	    p = (char *)(rbuf+r_size-1); b += *p;
+        }
+        if (wbuf) {
+	    if ((unsigned long)wbuf&0xf) {
+	      printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
+		     cmd, (unsigned long)wbuf, w_size);
+	    }
+	    char *p = (char *)wbuf; char b = *p;
+	    p = (char *)(wbuf+w_size-1); b += *p;
+        }
+#endif
 
     return new_task;
 }