aboutsummaryrefslogtreecommitdiff
path: root/include/apos/vmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apos/vmem.h')
-rw-r--r--include/apos/vmem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/apos/vmem.h b/include/apos/vmem.h
index 38432ee..2f6b10c 100644
--- a/include/apos/vmem.h
+++ b/include/apos/vmem.h
@@ -40,6 +40,12 @@ struct sp_mem {
*/
/* defined by arch */
+void map_vmem(struct vm_branch_t *branch,
+ pm_t paddr, vm_t vaddr, uint8_t flags, enum mm_order_t order);
+
+void unmap_vmem(struct vm_branch_t *branch,
+ vm_t vaddr, enum mm_order_t order);
+
int sp_mem_init(struct sp_reg_root *r, vm_t start, size_t nums);
vm_t alloc_uvmem(struct tcb *r, size_t s, uint8_t flags);