projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] x86-64: x86_64 add NX mask for PTE entry
[firefly-linux-kernel-4.4.55.git]
/
include
/
asm-x86_64
/
pgtable.h
diff --git
a/include/asm-x86_64/pgtable.h
b/include/asm-x86_64/pgtable.h
index 6899e770b173e4a2cb75fdd5bc664359cdf0fa7b..0555c1c4d8fa9fcda13c280997c076decc85d708 100644
(file)
--- a/
include/asm-x86_64/pgtable.h
+++ b/
include/asm-x86_64/pgtable.h
@@
-366,6
+366,7
@@
static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot)
{
pte_t pte;
pte_val(pte) = physpage | pgprot_val(pgprot);
+ pte_val(pte) &= __supported_pte_mask;
return pte;
}