changeset 1261:800e6e7abc59 draft

add ifndef
author Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
date Sat, 19 Nov 2011 13:57:47 +0900
parents fde4e3de9806
children 4e6a6e620fc4
files TaskManager/Fifo/ReferencedDmaManager.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Fifo/ReferencedDmaManager.cc	Sat Nov 19 07:42:21 2011 +0900
+++ b/TaskManager/Fifo/ReferencedDmaManager.cc	Sat Nov 19 13:57:47 2011 +0900
@@ -5,7 +5,10 @@
 void *
 ReferencedDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask)
 {
+#ifdef __CERIUM_FIFO__
 	asm("prefetcht0 %0"::"m"(addr):"memory");
+#endif // __CERIUM_FIFO__
+
 	return (void*)addr;
 }