summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/book3s/64/pgtable.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-04-29 23:26:33 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 21:53:58 +1000
commit69dfbaeb657bad13dddb3204603490206b859a7e (patch)
treefb5fb879c1fcd3ca357a09fabac53a27476efdac /arch/powerpc/include/asm/book3s/64/pgtable.h
parent17a3dd2f5fc75fc12d0a2ebf05327cf965bdf84b (diff)
downloadlinux-69dfbaeb657bad13dddb3204603490206b859a7e.tar.gz
powerpc/mm/radix: Document software bits for radix
Add #defines for Power ISA 3.0 software defined bits. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/pgtable.h')
-rw-r--r--arch/powerpc/include/asm/book3s/64/pgtable.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h
index 898222ae7b82..48dc76c13094 100644
--- a/arch/powerpc/include/asm/book3s/64/pgtable.h
+++ b/arch/powerpc/include/asm/book3s/64/pgtable.h
@@ -20,12 +20,16 @@
/*
* Software bits
*/
+#define _RPAGE_SW0 0x2000000000000000UL
+#define _RPAGE_SW1 0x00800
+#define _RPAGE_SW2 0x00400
+#define _RPAGE_SW3 0x00200
#ifdef CONFIG_MEM_SOFT_DIRTY
-#define _PAGE_SOFT_DIRTY 0x00200 /* software: software dirty tracking */
+#define _PAGE_SOFT_DIRTY _RPAGE_SW3 /* software: software dirty tracking */
#else
#define _PAGE_SOFT_DIRTY 0x00000
#endif
-#define _PAGE_SPECIAL 0x00400 /* software: special page */
+#define _PAGE_SPECIAL _RPAGE_SW2 /* software: special page */
#define _PAGE_PTE (1ul << 62) /* distinguishes PTEs from pointers */