https://github.com/torvalds/linux
Raw File
Tip revision: 9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3 authored by Linus Torvalds on 03 June 2009, 03:07:25 UTC
Linux 2.6.30-rc8
Tip revision: 9fa7eb2
cache.c
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;
		p += (32 / sizeof (int));
	}

	return 0;
}
back to top