2007-11-21 15:53:37 +08:00
|
|
|
int cache_control(unsigned int command)
|
|
|
|
{
|
|
|
|
volatile unsigned int *p = (volatile unsigned int *) 0x80000000;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < (32 * 1024); i += 32) {
|
|
|
|
(void)*p;
|
2010-02-28 00:51:36 +08:00
|
|
|
p += (32 / sizeof(int));
|
2007-11-21 15:53:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|