view 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
line wrap: on
line source

#include "ReferencedDmaManager.h"
#include "Scheduler.h"
#include "TaskManagerImpl.h"

void *
ReferencedDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask)
{
	asm volatile("prefetcht0 %0"::"m"(addr):"memory");
	return (void*)addr;
}