powerpc: Support execute-only on all powerpc
[linux-2.6-block.git] / arch / powerpc / include / asm / book3s / 64 / pgtable.h
index 0fd12bdc7b5ebf2c3f9ad215ea01536bf78a52ed..751b01227e364ea4a27ea5265ab013a57ebfce14 100644 (file)
@@ -18,6 +18,7 @@
 #define _PAGE_WRITE            0x00002 /* write access allowed */
 #define _PAGE_READ             0x00004 /* read access allowed */
 #define _PAGE_NA               _PAGE_PRIVILEGED
+#define _PAGE_NAX              _PAGE_EXEC
 #define _PAGE_RO               _PAGE_READ
 #define _PAGE_ROX              (_PAGE_READ | _PAGE_EXEC)
 #define _PAGE_RW               (_PAGE_READ | _PAGE_WRITE)
 
 #include <asm/pgtable-masks.h>
 
-/* Radix only, Hash uses PAGE_READONLY_X + execute-only pkey instead */
-#define PAGE_EXECONLY  __pgprot(_PAGE_BASE | _PAGE_EXEC)
-
 /* Permission masks used for kernel mappings */
 #define PAGE_KERNEL    __pgprot(_PAGE_BASE | _PAGE_KERNEL_RW)
 #define PAGE_KERNEL_NC __pgprot(_PAGE_BASE_NC | _PAGE_KERNEL_RW | _PAGE_TOLERANT)