diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-19 17:10:36 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-12-19 17:10:36 +0200 |
| commit | 9966b49db468de0168c7a455dfb5b4c66c413c4d (patch) | |
| tree | df31febe5e1ae52bae68ebe1df8b4469b97e0546 /arch/riscv/include/vmem.h | |
| parent | 8bb1e280280c2f30740defca68ea643c56a3d880 (diff) | |
| download | kmi-9966b49db468de0168c7a455dfb5b4c66c413c4d.tar.gz kmi-9966b49db468de0168c7a455dfb5b4c66c413c4d.zip | |
Massive changes to jump to userspace
Diffstat (limited to 'arch/riscv/include/vmem.h')
| -rw-r--r-- | arch/riscv/include/vmem.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv/include/vmem.h b/arch/riscv/include/vmem.h index d17aaf1..2cd3ac7 100644 --- a/arch/riscv/include/vmem.h +++ b/arch/riscv/include/vmem.h @@ -3,6 +3,7 @@ #include <apos/types.h> #include <apos/attrs.h> +#include <apos/pmem.h> #define VM_V (1 << 0) #define VM_R (1 << 1) @@ -24,4 +25,11 @@ struct __packed vm_branch_t { struct vm_branch_t *leaf[512]; }; + +void map_vmem(struct vm_branch_t *b, + pm_t paddr, vm_t vaddr, uint8_t flags, enum mm_order_t order); + +void unmap_vmem(struct vm_branch_t *b, + vm_t vaddr, enum mm_order_t order); + #endif /* APOS_RISCV_VMAP_H */ |
