Mercurial > hg > Game > Cerium
changeset 1810:b0bd89171162 draft
Minor fix
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 11 Dec 2013 18:49:06 +0900 |
parents | 138e7edff3ae |
children | 8039c48763c4 |
files | TaskManager/kernel/schedule/SchedTask.cc TaskManager/kernel/schedule/SchedTaskBase.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/schedule/SchedTask.cc Wed Dec 11 18:42:34 2013 +0900 +++ b/TaskManager/kernel/schedule/SchedTask.cc Wed Dec 11 18:49:06 2013 +0900 @@ -82,7 +82,7 @@ inListData.size = atask->inData_total_size(); inListData.element = atask->inData(0); if (inListData.length>DefaultBoundSize) - inListData.bound = (int*)manager->allocate(inListData.length*sizeof(int)); + inListData.bound = (long*)manager->allocate(inListData.length*sizeof(int)); // load Input Data // inListData.print(); readbuf = connector->dma_loadList(scheduler, &inListData, (DMA_READ + this->tag)); @@ -99,7 +99,7 @@ outListData.element = atask->outData(0); // if (outListData.bound!=dout) free(outListData.bound); if (outListData.length>DefaultBoundSize) - outListData.bound = (int*)manager->allocate(outListData.length*sizeof(int)); + outListData.bound = (long*)manager->allocate(outListData.length*sizeof(int)); connector->bound(&outListData); writebuf = connector->get_writebuf(scheduler, (memaddr)outListData.element[0].addr, outListData.size); }
--- a/TaskManager/kernel/schedule/SchedTaskBase.h Wed Dec 11 18:42:34 2013 +0900 +++ b/TaskManager/kernel/schedule/SchedTaskBase.h Wed Dec 11 18:49:06 2013 +0900 @@ -113,8 +113,8 @@ long x,y,z; #define DefaultBoundSize (8) - int din[DefaultBoundSize]; - int dout[DefaultBoundSize]; + long din[DefaultBoundSize]; + long dout[DefaultBoundSize]; /* system call */