Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136799
b: refs/heads/master
c: 01ade20
h: refs/heads/master
i:
  136797: 5b780f1
  136795: da78d82
  136791: 06bd821
  136783: 61901a9
  136767: 50a866b
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent e0891f5 commit 87405f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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: e24d7eee0beda24504bf6a4aa03be68328557475
refs/heads/master: 01ade20d5a22e6ef002cbb751dddc3a01a78f998
4 changes: 0 additions & 4 deletions trunk/arch/x86/include/asm/pgtable-3level.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ static inline void pud_clear(pud_t *pudp)
write_cr3(pgd);
}

/* Find an entry in the second-level page table.. */
#define pmd_offset(pud, address) ((pmd_t *)pud_page_vaddr(*(pud)) + \
pmd_index(address))

#ifdef CONFIG_SMP
static inline pte_t native_ptep_get_and_clear(pte_t *ptep)
{
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ static inline struct page *pud_page(pud_t pud)
{
return pfn_to_page(pud_val(pud) >> PAGE_SHIFT);
}

/* Find an entry in the second-level page table.. */
static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address)
{
return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address);
}
#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_offset(dir, address) ((pmd_t *)pud_page_vaddr(*(dir)) + \
pmd_index(address))
#define pfn_pmd(nr, prot) (__pmd(((nr) << PAGE_SHIFT) | pgprot_val((prot))))
#define pmd_pfn(x) ((pmd_val((x)) & __PHYSICAL_MASK) >> PAGE_SHIFT)

Expand Down

0 comments on commit 87405f0

Please sign in to comment.