comparison TaskManager/Fifo/ReferencedDmaManager.cc @ 1257:981b36f38333 draft

add prefetcht0
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 15 Nov 2011 18:01:14 +0900
parents a27c361c436b
children 52667b4c31e0
comparison
equal deleted inserted replaced
1248:d2f70da2aa19 1257:981b36f38333
3 #include "TaskManagerImpl.h" 3 #include "TaskManagerImpl.h"
4 4
5 void * 5 void *
6 ReferencedDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask) 6 ReferencedDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask)
7 { 7 {
8 asm volatile("prefetcht0 %0"::"m"(addr):"memory");
8 return (void*)addr; 9 return (void*)addr;
9 } 10 }
11