FireBirdLib - Topfield TMS PVR TAP Programming Library
FlushCache.c
Go to the documentation of this file.
1
#include "
libFireBird.h
"
2
3
void
FlushCache
(dword *pAddr,
int
Size)
4
{
5
TRACEENTER
();
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
}
FlushCache
void FlushCache(dword *pAddr, int Size)
Definition:
FlushCache.c:3
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
main
FlushCache.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3