projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: use PTE_MASK rather than ad-hoc mask
[deliverable/linux.git]
/
include
/
asm-x86
/
pgtable.h
diff --git
a/include/asm-x86/pgtable.h
b/include/asm-x86/pgtable.h
index b816134f753a63eb5cb94dc7ea60be767985b470..97c271b2910b3266b4aaafa53385dfd8148bf374 100644
(file)
--- a/
include/asm-x86/pgtable.h
+++ b/
include/asm-x86/pgtable.h
@@
-305,7
+305,7
@@
static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
return __pgprot(preservebits | addbits);
}
-#define pte_pgprot(x) __pgprot(pte_val(x) &
(0xfff | _PAGE_NX)
)
+#define pte_pgprot(x) __pgprot(pte_val(x) &
~PTE_MASK
)
#define canon_pgprot(p) __pgprot(pgprot_val(p) & __supported_pte_mask)
This page took
0.024967 seconds
and
5
git commands to generate.