powerpc/mm/radix: Document software bits for radix
authorAneesh Kumar K.V <[email protected]>
Fri, 29 Apr 2016 13:26:33 +0000 (23:26 +1000)
committerMichael Ellerman <[email protected]>
Wed, 11 May 2016 11:53:58 +0000 (21:53 +1000)
Add #defines for Power ISA 3.0 software defined bits.

Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
arch/powerpc/include/asm/book3s/64/pgtable.h

index 898222ae7b82c8e0872fce433973188d3262e8e8..48dc76c1309448cc0d122c57da66412e9f7960df 100644 (file)
 /*
  * 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 */