FireBirdLib - Topfield TMS PVR TAP Programming Library
FlushCache.c
Go to the documentation of this file.
1#include "libFireBird.h"
2
3void FlushCache(dword *pAddr, int Size)
4{
6
7 dword *pEnd = pAddr + Size;
8
9 do
10 {
11 __asm__(
12 " .set mips3\n"
13 " cache 0x10,0(%0)\n" // invalidate instruction cache
14 " cache 0x15,0(%0)\n" // flush data cache
15 : : "r" (pAddr));
16 pAddr += 4;
17 } while(pAddr < pEnd);
18
19 TRACEEXIT();
20}
void FlushCache(dword *pAddr, int Size)
Definition: FlushCache.c:3
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243