1 #include <lunaix/mm/pagetable.h>
2 #include <lunaix/mm/page.h>
4 _default struct leaflet*
5 dup_leaflet(struct leaflet* leaflet)
11 pmm_arch_init_pool(struct pmem* memory)
13 pmm_declare_pool(POOL_UNIFIED, 1, memory->list_len);
17 pmm_arch_init_remap(struct pmem* memory, struct boot_handoff* bctx)
19 fail("unimplemented");
23 translate_vmr_prot(unsigned int vmr_prot, pte_t pte)
25 pte = pte_mkuser(pte);
27 if ((vmr_prot & PROT_WRITE)) {
28 pte = pte_mkwritable(pte);
31 if ((vmr_prot & PROT_EXEC)) {
32 pte = pte_mkexec(pte);
35 pte = pte_mknexec(pte);