aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_64.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-05 14:30:55 -0500
committerJeremy Fitzhardinge <jeremy@goop.org>2009-02-06 15:31:48 -0500
commitf476961cb16312fe4cb80b2b457ef9acf220a7fc (patch)
treee4280ddbb808145198b7a2754a447bd70a91fead /arch/x86/include/asm/pgtable_64.h
parentaca159dbb13a5221819d5b3849b8c013f4829e9e (diff)
x86: unify pud_page
Impact: cleanup Unify and demacro pud_page. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_64.h')
-rw-r--r--arch/x86/include/asm/pgtable_64.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h
index 9875e40c058d..7edacc7ec89f 100644
--- a/arch/x86/include/asm/pgtable_64.h
+++ b/arch/x86/include/asm/pgtable_64.h
@@ -185,7 +185,6 @@ static inline int pgd_large(pgd_t pgd) { return 0; }
185 185
186/* PUD - Level3 access */ 186/* PUD - Level3 access */
187/* to find an entry in a page-table-directory. */ 187/* to find an entry in a page-table-directory. */
188#define pud_page(pud) (pfn_to_page(pud_val((pud)) >> PAGE_SHIFT))
189#define pud_index(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD - 1)) 188#define pud_index(address) (((address) >> PUD_SHIFT) & (PTRS_PER_PUD - 1))
190#define pud_offset(pgd, address) \ 189#define pud_offset(pgd, address) \
191 ((pud_t *)pgd_page_vaddr(*(pgd)) + pud_index((address))) 190 ((pud_t *)pgd_page_vaddr(*(pgd)) + pud_index((address)))