diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-20 21:03:37 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-20 21:03:37 +0200 |
| commit | 61291639524e4aebf93a3315661e7180ac1b9c1e (patch) | |
| tree | b524cd94fe1c59c9733e913f1de1e1c68b313bda /include | |
| parent | 6f8e5772d17d277842be3f6162ddd665a17e5be9 (diff) | |
| download | kmi-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')
| -rw-r--r-- | include/apos/utils.h | 3 | ||||
| -rw-r--r-- | include/apos/vmem.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/apos/utils.h b/include/apos/utils.h index d0b41ce..91b8535 100644 --- a/include/apos/utils.h +++ b/include/apos/utils.h @@ -14,6 +14,9 @@ #define GLUE2(x, y) x##y #define GLUE(x, y) GLUE2(x, y) +#define QUOTE2(x) #x +#define QUOTE(x) QUOTE2(x) + #include <apos/builtin.h> #if __has_builtin(__builtin_offsetof) 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); |
