Advertisement
Guest User

Untitled

a guest
Sep 19th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. static void __attribute__((aligned(32),noinline)) invalidate_way0(void)
  2. {
  3.     /* invalidate cache way 0 */
  4.     CACHEOP = 0x02;
  5.  
  6.     /* wait for invalidate process to complete */
  7.     while (CACHEOP & 0x03);  
  8. }
  9.  
  10. static void __attribute__ ((aligned(32),noinline)) invalidate_way1(void)
  11. {
  12.     /* invalidate cache way 1 */
  13.     CACHEOP = 0x80000002;
  14.  
  15.     /* wait for invalidate process to complete */
  16.     while (CACHEOP & 0x03);  
  17. }
  18.  
  19.  
  20. void commit_discard_idcache(void)
  21. {
  22.     invalidate_way0();
  23.     invalidate_way1();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement