aboutsummaryrefslogtreecommitdiff
path: root/include/apos/vmem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 21:03:37 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 21:03:37 +0200
commit61291639524e4aebf93a3315661e7180ac1b9c1e (patch)
treeb524cd94fe1c59c9733e913f1de1e1c68b313bda /include/apos/vmem.h
parent6f8e5772d17d277842be3f6162ddd665a17e5be9 (diff)
downloadkmi-61291639524e4aebf93a3315661e7180ac1b9c1e.tar.gz
kmi-61291639524e4aebf93a3315661e7180ac1b9c1e.zip
Right up to init_proc, FUCK YEAH
+ Lots to do still, should keep a more detailed TODO.txt, among other things implement Sv48 support, make more things single truths etc.
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);