linux/arch/score/include/asm/pgtable-bits.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef _ASM_SCORE_PGTABLE_BITS_H
   3#define _ASM_SCORE_PGTABLE_BITS_H
   4
   5#define _PAGE_ACCESSED                  (1<<5)  /* implemented in software */
   6#define _PAGE_READ                      (1<<6)  /* implemented in software */
   7#define _PAGE_WRITE                     (1<<7)  /* implemented in software */
   8#define _PAGE_PRESENT                   (1<<9)  /* implemented in software */
   9#define _PAGE_MODIFIED                  (1<<10) /* implemented in software */
  10
  11#define _PAGE_GLOBAL                    (1<<0)
  12#define _PAGE_VALID                     (1<<1)
  13#define _PAGE_SILENT_READ               (1<<1)  /* synonym */
  14#define _PAGE_DIRTY                     (1<<2)  /* Write bit */
  15#define _PAGE_SILENT_WRITE              (1<<2)
  16#define _PAGE_CACHE                     (1<<3)  /* cache */
  17#define _CACHE_MASK                     (1<<3)
  18#define _PAGE_BUFFERABLE                (1<<4)  /*Fallow Spec. */
  19
  20#define __READABLE      (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED)
  21#define __WRITEABLE     (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
  22#define _PAGE_CHG_MASK                  \
  23        (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED | _PAGE_CACHE)
  24
  25#endif /* _ASM_SCORE_PGTABLE_BITS_H */
  26