git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/mm: Fix {pmd,pud}_{set,clear}_flags()
[pandora-kernel.git]
/
arch
/
x86
/
include
/
asm
/
pgtable_types.h
diff --git
a/arch/x86/include/asm/pgtable_types.h
b/arch/x86/include/asm/pgtable_types.h
index
34501e6
..
3c46723
100644
(file)
--- a/
arch/x86/include/asm/pgtable_types.h
+++ b/
arch/x86/include/asm/pgtable_types.h
@@
-271,6
+271,11
@@
static inline pmdval_t native_pmd_val(pmd_t pmd)
#else
#include <asm-generic/pgtable-nopmd.h>
+static inline pmd_t native_make_pmd(pmdval_t val)
+{
+ return (pmd_t) { .pud.pgd = native_make_pgd(val) };
+}
+
static inline pmdval_t native_pmd_val(pmd_t pmd)
{
return native_pgd_val(pmd.pud.pgd);