comparison 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 (2010-08-02)
parents 9ed1c4a877ca
children 6ffeb543e8d4
comparison
equal deleted inserted replaced
948:233bb9355fb7 949:5f0135ca75ee
57 57
58 new_task = htaskImpl->create(cmd, rbuf, r_size, wbuf, w_size); 58 new_task = htaskImpl->create(cmd, rbuf, r_size, wbuf, w_size);
59 new_task->post_func = noaction; 59 new_task->post_func = noaction;
60 new_task->mimpl = this; 60 new_task->mimpl = this;
61 new_task->from = (memaddr)from; 61 new_task->from = (memaddr)from;
62 #ifdef EARLY_TOUCH
63 if (rbuf) {
64 if ((unsigned long)rbuf&0xf) {
65 printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
66 cmd, (unsigned long)rbuf, r_size);
67 }
68 char *p = (char *)rbuf; char b = *p;
69 p = (char *)(rbuf+r_size-1); b += *p;
70 }
71 if (wbuf) {
72 if ((unsigned long)wbuf&0xf) {
73 printf("Data is not aligned. command = %d, addr = 0x%lx, size = %ld\n",
74 cmd, (unsigned long)wbuf, w_size);
75 }
76 char *p = (char *)wbuf; char b = *p;
77 p = (char *)(wbuf+w_size-1); b += *p;
78 }
79 #endif
62 80
63 return new_task; 81 return new_task;
64 } 82 }
65 83
66 /** 84 /**