summaryrefslogtreecommitdiff
path: root/arch/nios2/include/asm/pgtable-bits.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-01-13 18:10:14 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-02 22:33:08 -0800
commit4d1d955f7c0cdbb7562d19049f859c74276fdfeb (patch)
treef0537894c5da00280df4f2472c57a1f5cb495231 /arch/nios2/include/asm/pgtable-bits.h
parent0a9ad8273ff4643dd50ff6b3ec991ab270e87a89 (diff)
nios2/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by using the yet-unused bit 31. Link: https://lkml.kernel.org/r/20230113171026.582290-15-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/nios2/include/asm/pgtable-bits.h')
-rw-r--r--arch/nios2/include/asm/pgtable-bits.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/pgtable-bits.h b/arch/nios2/include/asm/pgtable-bits.h
index bfddff383e89..724f9b08b1d1 100644
--- a/arch/nios2/include/asm/pgtable-bits.h
+++ b/arch/nios2/include/asm/pgtable-bits.h
@@ -31,4 +31,7 @@
#define _PAGE_ACCESSED (1<<26) /* page referenced */
#define _PAGE_DIRTY (1<<27) /* dirty page */
+/* We borrow bit 31 to store the exclusive marker in swap PTEs. */
+#define _PAGE_SWP_EXCLUSIVE (1<<31)
+
#endif /* _ASM_NIOS2_PGTABLE_BITS_H */