aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r--include/asm-x86/page.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h
index 91920565a575..a6495eb5c605 100644
--- a/include/asm-x86/page.h
+++ b/include/asm-x86/page.h
@@ -108,6 +108,16 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
108#include <asm-generic/pgtable-nopmd.h> 108#include <asm-generic/pgtable-nopmd.h>
109#endif /* PAGETABLE_LEVELS >= 3 */ 109#endif /* PAGETABLE_LEVELS >= 3 */
110 110
111static inline pte_t native_make_pte(pteval_t val)
112{
113 return (pte_t) { .pte = val };
114}
115
116static inline pteval_t native_pte_val(pte_t pte)
117{
118 return pte.pte;
119}
120
111#define pgprot_val(x) ((x).pgprot) 121#define pgprot_val(x) ((x).pgprot)
112#define __pgprot(x) ((pgprot_t) { (x) } ) 122#define __pgprot(x) ((pgprot_t) { (x) } )
113 123