diff options
Diffstat (limited to 'arch/loongarch/include/asm/pgtable-bits.h')
| -rw-r--r-- | arch/loongarch/include/asm/pgtable-bits.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/pgtable-bits.h b/arch/loongarch/include/asm/pgtable-bits.h index 3d1e0a69975a..8b98d22a145b 100644 --- a/arch/loongarch/include/asm/pgtable-bits.h +++ b/arch/loongarch/include/asm/pgtable-bits.h @@ -20,6 +20,7 @@  #define	_PAGE_SPECIAL_SHIFT	11  #define	_PAGE_HGLOBAL_SHIFT	12 /* HGlobal is a PMD bit */  #define	_PAGE_PFN_SHIFT		12 +#define	_PAGE_SWP_EXCLUSIVE_SHIFT 23  #define	_PAGE_PFN_END_SHIFT	48  #define	_PAGE_NO_READ_SHIFT	61  #define	_PAGE_NO_EXEC_SHIFT	62 @@ -33,6 +34,9 @@  #define _PAGE_PROTNONE		(_ULCAST_(1) << _PAGE_PROTNONE_SHIFT)  #define _PAGE_SPECIAL		(_ULCAST_(1) << _PAGE_SPECIAL_SHIFT) +/* We borrow bit 23 to store the exclusive marker in swap PTEs. */ +#define _PAGE_SWP_EXCLUSIVE	(_ULCAST_(1) << _PAGE_SWP_EXCLUSIVE_SHIFT) +  /* Used by TLB hardware (placed in EntryLo*) */  #define _PAGE_VALID		(_ULCAST_(1) << _PAGE_VALID_SHIFT)  #define _PAGE_DIRTY		(_ULCAST_(1) << _PAGE_DIRTY_SHIFT)  |