SHARE
TWEET

Untitled

a guest Sep 19th, 2012 29 Never
  1. static void __attribute__((aligned(32),noinline)) invalidate_way(int way)
  2. {
  3.     CACHEOP = ((way<<31)|0x2);
  4.  
  5.     /* wait for invalidate process to complete */
  6.     while (CACHEOP & 0x03);  
  7. }
  8.  
  9. void commit_discard_idcache(void)
  10. {
  11.         invalidate_way(0);
  12.         invalidate_way(1);
  13. }
RAW Paste Data
Top