From 5793a61eb824a7b97e9bab5913b595a778205cef Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 22 May 2022 15:05:39 +0300 Subject: improved tcb handling in preparation for processes --- include/arch/vmem.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/arch/vmem.h') diff --git a/include/arch/vmem.h b/include/arch/vmem.h index 74b0aa5..5197c67 100644 --- a/include/arch/vmem.h +++ b/include/arch/vmem.h @@ -16,13 +16,15 @@ stat_t stat_vpage(struct vm_branch *branch, vm_t vaddr, pm_t *paddr, void flush_tlb(); void flush_tlb_all(); -void populate_root_branch(struct vm_branch *b); +stat_t populate_kvmem(struct vm_branch *b); struct vm_branch *init_vmem(void *fdt); #if defined(DEBUG) vm_t setup_kernel_io(struct vm_branch *b, vm_t paddr); #endif -stat_t clone_vmbranch(struct vm_branch *, struct vm_branch *); +struct vm_branch *create_vmem(); +stat_t destroy_vmem(struct vm_branch *); +stat_t clone_uvmem(struct vm_branch *, struct vm_branch *); #endif /* APOS_ARCH_PAGES_H */ -- cgit v1.3