view TaskManager/Fifo/PreRefDmaManager.cc @ 1479:163220e54cc0 draft

remove hard code for TaskLog
author Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
date Tue, 24 Jul 2012 17:15:15 +0900
parents 94ac6d8e73aa
children 411401d1cb71
line wrap: on
line source

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

void *
PreRefDmaManager::dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask)
{
	unsigned long long wait = 0;
	(this->*start_dmawait_profile)();

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

	(this->*end_dmawait_profile)(&wait);
	global_load_time += wait;
	dma_load_time += wait;

	return (void*)addr;
}

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