1 #ifndef __LUNAIX_ARCH_MEMORY_H
2 #define __LUNAIX_ARCH_MEMORY_H
4 #include <lunaix/mm/pagetable.h>
5 #include <lunaix/mann_flags.h>
7 static inline pte_attr_t
8 translate_vmr_prot(unsigned int vmr_prot)
10 pte_attr_t _pte_prot = _PTE_U;
11 if ((vmr_prot & PROT_READ)) {
15 if ((vmr_prot & PROT_WRITE)) {
19 if (!(vmr_prot & PROT_EXEC)) {
27 #endif /* __LUNAIX_ARCH_MEMORY_H */