Commit a81d9641 authored by Charles Jacobsen's avatar Charles Jacobsen Committed by Vikram Narayanan

All lcd tests through 5 are passing.

Added pgd_pfn to asm/pgtables.h.
parent 1d9c6dfb
......@@ -168,6 +168,11 @@ static inline unsigned long pud_pfn(pud_t pud)
return (pud_val(pud) & pud_pfn_mask(pud)) >> PAGE_SHIFT;
}
static inline unsigned long pgd_pfn(pgd_t pgd)
{
return (pgd_val(pgd) & PTE_PFN_MASK) >> PAGE_SHIFT;
}
#define pte_page(pte) pfn_to_page(pte_pfn(pte))
static inline int pmd_large(pmd_t pte)
......
......@@ -219,7 +219,7 @@ static int test05(void)
* gpa 0x1234000UL.
*/
pmd = (pmd_t *)__va(hpa);
set_pmd(pmd + 4, 0x1234000UL);
set_pmd(pmd + 4, __pmd(0x1234000UL));
/*
* Set up pud entry for look up, and find pmd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment