Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349731
b: refs/heads/master
c: 0ee364e
h: refs/heads/master
i:
  349729: 8d78643
  349727: e4e0f26
v: v3
  • Loading branch information
Mel Gorman authored and Ingo Molnar committed Feb 13, 2013
1 parent c05d116 commit ee57ce2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb214ede7657db458fd0b2a25ea0b28dbf900ebc
refs/heads/master: 0ee364eb316348ddf3e0dfcd986f5f13f528f821
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 @@ -142,6 +142,11 @@ static inline unsigned long pmd_pfn(pmd_t pmd)
return (pmd_val(pmd) & PTE_PFN_MASK) >> PAGE_SHIFT;
}

static inline unsigned long pud_pfn(pud_t pud)
{
return (pud_val(pud) & PTE_PFN_MASK) >> PAGE_SHIFT;
}

#define pte_page(pte) pfn_to_page(pte_pfn(pte))

static inline int pmd_large(pmd_t pte)
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@ int kern_addr_valid(unsigned long addr)
if (pud_none(*pud))
return 0;

if (pud_large(*pud))
return pfn_valid(pud_pfn(*pud));

pmd = pmd_offset(pud, addr);
if (pmd_none(*pmd))
return 0;
Expand Down

0 comments on commit ee57ce2

Please sign in to comment.