cache.c 214 B

123456789101112
  1. int cache_control(unsigned int command)
  2. {
  3. volatile unsigned int *p = (volatile unsigned int *) 0x80000000;
  4. int i;
  5. for (i = 0; i < (32 * 1024); i += 32) {
  6. (void)*p;
  7. p += (32 / sizeof(int));
  8. }
  9. return 0;
  10. }