From: Jeremy Fitzhardinge Date: Wed, 30 Jan 2008 12:33:14 +0000 (+0100) Subject: add native_pud_val and _pmd_val for 2 and 3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f98b2faac1b5fec327edbde945cdf7f7a53f351;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git add native_pud_val and _pmd_val for 2 and 3 Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index a6495eb5c605..eba88d940092 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h @@ -91,6 +91,11 @@ static inline pudval_t native_pud_val(pud_t pud) } #else /* PAGETABLE_LEVELS == 3 */ #include + +static inline pudval_t native_pud_val(pud_t pud) +{ + return native_pgd_val(pud.pgd); +} #endif /* PAGETABLE_LEVELS == 4 */ typedef struct { pmdval_t pmd; } pmd_t; @@ -106,6 +111,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) } #else /* PAGETABLE_LEVELS == 2 */ #include + +static inline pmdval_t native_pmd_val(pmd_t pmd) +{ + return native_pgd_val(pmd.pud.pgd); +} #endif /* PAGETABLE_LEVELS >= 3 */ static inline pte_t native_make_pte(pteval_t val)