]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/paravirt.h
x86: fix pte_flags() to only return flags, fix lguest (updated)
[linux-2.6-omap-h63xx.git] / include / asm-x86 / paravirt.h
index aec9767836b6cb4a9d90cc31a33d87e7ea4fc774..5ca4639dc7dd0870a51e8240bea0f7a7e542d8df 100644 (file)
@@ -1088,6 +1088,9 @@ static inline pteval_t pte_flags(pte_t pte)
                ret = PVOP_CALL1(pteval_t, pv_mmu_ops.pte_flags,
                                 pte.pte);
 
+#ifdef CONFIG_PARAVIRT_DEBUG
+       BUG_ON(ret & PTE_MASK);
+#endif
        return ret;
 }