aboutsummaryrefslogtreecommitdiff
path: root/include/apos/vmem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 13:12:06 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 13:12:06 +0200
commita37974009152b4bf6a2d7ed205a48230f939dd72 (patch)
tree8fb3dd159751a9cf983fd78819aad7ff69bb03cc /include/apos/vmem.h
parentdc2e2cc9dc9d7790e23dd9a4ccc265d7bb6d76aa (diff)
downloadkmi-a37974009152b4bf6a2d7ed205a48230f939dd72.tar.gz
kmi-a37974009152b4bf6a2d7ed205a48230f939dd72.zip
still some issues with vmem
+ Not sure if I should go with noinit or init, fuck
Diffstat (limited to 'include/apos/vmem.h')
-rw-r--r--include/apos/vmem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/apos/vmem.h b/include/apos/vmem.h
index daa9d10..ef309e2 100644
--- a/include/apos/vmem.h
+++ b/include/apos/vmem.h
@@ -39,6 +39,11 @@ 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);