]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/include/asm/pgtable.h
kmemcheck: add the kmemcheck core
[net-next-2.6.git] / arch / x86 / include / asm / pgtable.h
index 18ef7ebf2631709dad4f26a681fdbf5dff5a8b2b..c5a08079ad5e8dd3f35985ab3a1c92bdab935ed7 100644 (file)
@@ -317,6 +317,15 @@ static inline int pte_present(pte_t a)
        return pte_flags(a) & (_PAGE_PRESENT | _PAGE_PROTNONE);
 }
 
+static inline int pte_hidden(pte_t x)
+{
+#ifdef CONFIG_KMEMCHECK
+       return pte_flags(x) & _PAGE_HIDDEN;
+#else
+       return 0;
+#endif
+}
+
 static inline int pmd_present(pmd_t pmd)
 {
        return pmd_flags(pmd) & _PAGE_PRESENT;