|
@@ -144,6 +144,11 @@ static inline pteval_t native_pte_val(pte_t pte)
|
|
|
return pte.pte;
|
|
|
}
|
|
|
|
|
|
+static inline pteval_t native_pte_flags(pte_t pte)
|
|
|
+{
|
|
|
+ return native_pte_val(pte) & ~PTE_MASK;
|
|
|
+}
|
|
|
+
|
|
|
#define pgprot_val(x) ((x).pgprot)
|
|
|
#define __pgprot(x) ((pgprot_t) { (x) } )
|
|
|
|
|
@@ -165,7 +170,7 @@ static inline pteval_t native_pte_val(pte_t pte)
|
|
|
#endif
|
|
|
|
|
|
#define pte_val(x) native_pte_val(x)
|
|
|
-#define pte_flags(x) native_pte_val(x)
|
|
|
+#define pte_flags(x) native_pte_flags(x)
|
|
|
#define __pte(x) native_make_pte(x)
|
|
|
|
|
|
#endif /* CONFIG_PARAVIRT */
|