[PATCH] [4/8] GBPAGES: Add pgtable accessor functions for GB pages
From: Andi Kleen
Date: Thu Jan 03 2008 - 12:28:24 EST
Signed-off-by: Andi Kleen <ak@xxxxxxx>
---
include/asm-x86/pgtable_64.h | 3 +++
1 file changed, 3 insertions(+)
Index: linux/include/asm-x86/pgtable_64.h
===================================================================
--- linux.orig/include/asm-x86/pgtable_64.h
+++ linux/include/asm-x86/pgtable_64.h
@@ -320,6 +320,9 @@ static inline int pmd_large(pmd_t pte) {
return (pmd_val(pte) & __LARGE_PTE) == __LARGE_PTE;
}
+static inline int pud_large(pud_t pte) {
+ return (pud_val(pte) & __LARGE_PTE) == __LARGE_PTE;
+}
/*
* Conversion functions: convert a page and protection to a page entry,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/