pgtable-bits.h 849 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_PGTABLE_BITS_H
  4. #define __ASM_CSKY_PGTABLE_BITS_H
  5. /* implemented in software */
  6. #define _PAGE_ACCESSED (1<<3)
  7. #define PAGE_ACCESSED_BIT (3)
  8. #define _PAGE_READ (1<<1)
  9. #define _PAGE_WRITE (1<<2)
  10. #define _PAGE_PRESENT (1<<0)
  11. #define _PAGE_MODIFIED (1<<4)
  12. #define PAGE_MODIFIED_BIT (4)
  13. /* implemented in hardware */
  14. #define _PAGE_GLOBAL (1<<6)
  15. #define _PAGE_VALID (1<<7)
  16. #define PAGE_VALID_BIT (7)
  17. #define _PAGE_DIRTY (1<<8)
  18. #define PAGE_DIRTY_BIT (8)
  19. #define _PAGE_CACHE (3<<9)
  20. #define _PAGE_UNCACHE (2<<9)
  21. #define _CACHE_MASK (7<<9)
  22. #define _CACHE_CACHED (_PAGE_VALID | _PAGE_CACHE)
  23. #define _CACHE_UNCACHED (_PAGE_VALID | _PAGE_UNCACHE)
  24. #define HAVE_ARCH_UNMAPPED_AREA
  25. #endif /* __ASM_CSKY_PGTABLE_BITS_H */