Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136801
b: refs/heads/master
c: 3180fba
h: refs/heads/master
i:
  136799: 87405f0
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent cc56e9e commit 24d3f17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd44d64db1db6acf2dea9ba130b8cb0a54e1dabd
refs/heads/master: 3180fba0eec0d14e4ac8183a90d643d0d3383c75
5 changes: 5 additions & 0 deletions trunk/arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address)
{
return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address);
}

static inline unsigned long pmd_pfn(pmd_t pmd)
{
return (pmd_val(pmd) & PTE_PFN_MASK) >> PAGE_SHIFT;
}
#endif /* PAGETABLE_LEVELS > 2 */

#if PAGETABLE_LEVELS > 3
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/include/asm/pgtable_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ static inline int pud_large(pud_t pte)
}

/* PMD - Level 2 access */
#define pmd_pfn(x) ((pmd_val((x)) & __PHYSICAL_MASK) >> PAGE_SHIFT)

#define pte_to_pgoff(pte) ((pte_val((pte)) & PHYSICAL_PAGE_MASK) >> PAGE_SHIFT)
#define pgoff_to_pte(off) ((pte_t) { .pte = ((off) << PAGE_SHIFT) | \
_PAGE_FILE })
Expand Down

0 comments on commit 24d3f17

Please sign in to comment.