changeset 1416:88d1b95e5f8d draft

NULL write DMA mode
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 19 Feb 2012 16:12:25 +0900
parents 774ea7a71b0f
children 70f461442b0f
files TaskManager/Fifo/FifoDmaManager.cc TaskManager/Fifo/ReferencedDmaManager.cc TaskManager/Fifo/ReferencedDmaManager.h
diffstat 3 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoDmaManager.cc	Sun Feb 19 15:45:36 2012 +0900
+++ b/TaskManager/Fifo/FifoDmaManager.cc	Sun Feb 19 16:12:25 2012 +0900
@@ -39,7 +39,7 @@
         unsigned long long wait = 0;
         (this->*start_dmawait_profile)();
 
-    memcpy((void*)addr, buf, size);
+        memcpy((void*)addr, buf, size);
 
         (this->*end_dmawait_profile)(&wait);
         global_store_time += wait;
--- a/TaskManager/Fifo/ReferencedDmaManager.cc	Sun Feb 19 15:45:36 2012 +0900
+++ b/TaskManager/Fifo/ReferencedDmaManager.cc	Sun Feb 19 16:12:25 2012 +0900
@@ -37,3 +37,21 @@
     }
 }
 
+void *
+ReferencedDmaManager::get_writebuf(Scheduler *s,memaddr addr, uint32 size)
+{
+    return (void*)addr;
+}
+
+void *
+ReferencedDmaManager::dma_store(void *buf, memaddr addr, uint32 size, uint32 mask)
+{
+    return (void*)addr;
+}
+
+void
+ReferencedDmaManager::dma_storeList(ListDataPtr list, void *buff, uint32 mask)
+{
+}
+
+
--- a/TaskManager/Fifo/ReferencedDmaManager.h	Sun Feb 19 15:45:36 2012 +0900
+++ b/TaskManager/Fifo/ReferencedDmaManager.h	Sun Feb 19 16:12:25 2012 +0900
@@ -9,6 +9,10 @@
 	/* functions */
     virtual void *dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask);
     virtual void *dma_loadList(Scheduler *s, ListDataPtr list, void *buff, uint32 mask);
+    virtual void *dma_store(void *buf, memaddr addr, uint32 size, uint32 mask);
+    virtual void dma_storeList(ListDataPtr list, void *buff, uint32 mask);
+    virtual void *get_writebuf(Scheduler *s,memaddr addr, uint32 size);
+
     virtual void free_(void *buff);
     virtual void bound(ListData *list);
 } ;