Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2f98b2faac1b5fec327edbde945cdf7f7a53f351 Commit: 2f98b2faac1b5fec327edbde945cdf7f7a53f351 Parent: 118c890961a2ca456947d72ebe0ce43de07907f0 Author: Jeremy Fitzhardinge <[EMAIL PROTECTED]> AuthorDate: Wed Jan 30 13:33:14 2008 +0100 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Wed Jan 30 13:33:14 2008 +0100
add native_pud_val and _pmd_val for 2 and 3 Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> --- include/asm-x86/page.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index a6495eb..eba88d9 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 <asm-generic/pgtable-nopud.h> + +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 <asm-generic/pgtable-nopmd.h> + +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) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html