cachectl.h 705 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ARC_ASM_CACHECTL_H
  9. #define __ARC_ASM_CACHECTL_H
  10. /*
  11. * ARC ABI flags defined for Android's finegrained cacheflush requirements
  12. */
  13. #define CF_I_INV 0x0002
  14. #define CF_D_FLUSH 0x0010
  15. #define CF_D_FLUSH_INV 0x0020
  16. #define CF_DEFAULT (CF_I_INV | CF_D_FLUSH)
  17. /*
  18. * Standard flags expected by cacheflush system call users
  19. */
  20. #define ICACHE CF_I_INV
  21. #define DCACHE CF_D_FLUSH
  22. #define BCACHE (CF_I_INV | CF_D_FLUSH)
  23. #endif