view TaskManager/ManyCore/PreRefDmaManager.cc @ 2022:fac44ad2867d draft

make a sound
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Wed, 16 Jul 2014 02:50:32 +0900
parents e0d465efc57e
children
line wrap: on
line source

#include "PreRefDmaManager.h"
#include "Scheduler.h"
#include "TaskManagerImpl.h"

void *
PreRefDmaManager::dma_load(Scheduler *s, memaddr addr, uint32 size, uint32 mask)
{

#ifdef __CERIUM_FIFO__
	asm("prefetcht0 %0"::"m"(addr):"memory");
#endif // __CERIUM_FIFO__


	return (void*)addr;
}

void
PreRefDmaManager::free_(void *buf) {
}