]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - arch/arm64/include/asm/pgtable.h
Merge branch 'akpm' (patches from Andrew)
[thirdparty/linux.git] / arch / arm64 / include / asm / pgtable.h
index e50e4dda90c2b0fd62665f5474f37e6b340092fc..dae0466d19d6ebd474160c6a4958c438e07e4616 100644 (file)
@@ -407,6 +407,9 @@ static inline pmd_t pmd_mkdevmap(pmd_t pmd)
 #define __pgprot_modify(prot,mask,bits) \
        __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
 
+#define pgprot_nx(prot) \
+       __pgprot_modify(prot, 0, PTE_PXN)
+
 /*
  * Mark the prot value as uncacheable and unbufferable.
  */