ia64: Fix _PAGE_CHG_MASK so PROT_NONE works again. Caught by Linus.

Linux Kernel Mailing List <[email protected]> Tue, 03 Aug 2004 16:06:42 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1455, 2004/08/03 10:06:42-06:00, [email protected]

	ia64: Fix _PAGE_CHG_MASK so PROT_NONE works again.  Caught by Linus.



 pgtable.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h
--- a/include/asm-ia64/pgtable.h	2005-03-24 09:03:59 -08:00
+++ b/include/asm-ia64/pgtable.h	2005-03-24 09:03:59 -08:00
@@ -60,8 +60,8 @@
 #define _PAGE_PROTNONE		(__IA64_UL(1) << 63)
 
 #define _PFN_MASK		_PAGE_PPN_MASK
-/* Mask of bits which may be changed by pte_modify(): */
-#define _PAGE_CHG_MASK		_PAGE_AR_MASK
+/* Mask of bits which may be changed by pte_modify(); the odd bits are there for _PAGE_PROTNONE */
+#define _PAGE_CHG_MASK	(_PAGE_P | _PAGE_PROTNONE | _PAGE_PL_MASK | _PAGE_AR_MASK | _PAGE_ED)
 
 #define _PAGE_SIZE_4K	12
 #define _PAGE_SIZE_8K	13