Advertisement
Guest User

Untitled

a guest
Sep 19th, 2012
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement