Code-base clean-up and refactoring (#47)
[lunaix-os.git] / lunaix-os / arch / x86 / includes / sys / mm / memory.h
diff --git a/lunaix-os/arch/x86/includes/sys/mm/memory.h b/lunaix-os/arch/x86/includes/sys/mm/memory.h
deleted file mode 100644 (file)
index abccba9..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifndef __LUNAIX_ARCH_MEMORY_H
-#define __LUNAIX_ARCH_MEMORY_H
-
-#include <lunaix/mm/pagetable.h>
-#include <lunaix/mann_flags.h>
-
-static inline pte_t
-translate_vmr_prot(unsigned int vmr_prot, pte_t pte)
-{
-    pte = pte_mkuser(pte);
-
-    if ((vmr_prot & PROT_WRITE)) {
-        pte = pte_mkwritable(pte);
-    }
-
-    if ((vmr_prot & PROT_EXEC)) {
-        pte = pte_mkexec(pte);
-    }
-    else {
-        pte = pte_mknonexec(pte);
-    }
-
-    return pte;
-}
-
-
-#endif /* __LUNAIX_ARCH_MEMORY_H */