fix dependency check logic cause config always disabled
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / pagetable.h
index 79244eb38cd2b9d519b5aeb7d68a115a1804f4e2..7093d669ec0a6dc5d5a19a165c36f378b7072930 100644 (file)
@@ -646,4 +646,10 @@ ptep_count_level(pte_t* ptep)
     return 0;
 }
 
     return 0;
 }
 
+static inline pte_t must_inline
+pte_advance(pte_t pte, unsigned long lvl_size)
+{
+    return pte_setpaddr(pte, pte_paddr(pte) + lvl_size);
+}
+
 #endif /* __LUNAIX_PAGETABLE_H */
 #endif /* __LUNAIX_PAGETABLE_H */