From 52e5c94314fa8e10efded82db85d181ed32f00bd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 4 Jun 2023 00:48:15 +0300 Subject: visionfive2 boots until debugging is initialized --- include/arch/vmem.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/arch/vmem.h') diff --git a/include/arch/vmem.h b/include/arch/vmem.h index 3f73a8f..d2f031d 100644 --- a/include/arch/vmem.h +++ b/include/arch/vmem.h @@ -98,8 +98,11 @@ stat_t mod_vpage(struct vmem *branch, vm_t vaddr, pm_t paddr, vmflags_t flags); stat_t stat_vpage(struct vmem *branch, vm_t vaddr, pm_t *paddr, enum mm_order *order, vmflags_t *flags); -/** Flush tlb of current processor. */ -void flush_tlb(); +/** Flush tlb entry where associated with address \p addr. */ +void flush_tlb(uintptr_t addr); + +/** Flush full tlb of current address space. */ +void flush_tlb_full(); /** Flush tlbs of all processors. */ void flush_tlb_all(); -- cgit v1.3