add native_pud_val and _pmd_val for 2 and 3
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Ingo Molnar
parent
118c890961
commit
2f98b2faac
@@ -91,6 +91,11 @@ static inline pudval_t native_pud_val(pud_t pud)
|
|||||||
}
|
}
|
||||||
#else /* PAGETABLE_LEVELS == 3 */
|
#else /* PAGETABLE_LEVELS == 3 */
|
||||||
#include <asm-generic/pgtable-nopud.h>
|
#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 */
|
#endif /* PAGETABLE_LEVELS == 4 */
|
||||||
|
|
||||||
typedef struct { pmdval_t pmd; } pmd_t;
|
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 */
|
#else /* PAGETABLE_LEVELS == 2 */
|
||||||
#include <asm-generic/pgtable-nopmd.h>
|
#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 */
|
#endif /* PAGETABLE_LEVELS >= 3 */
|
||||||
|
|
||||||
static inline pte_t native_make_pte(pteval_t val)
|
static inline pte_t native_make_pte(pteval_t val)
|
||||||
|
Reference in New Issue
Block a user