From 01001c2aa2216c92603e1bdc334613e5adcacb04 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 21 Nov 2025 22:45:41 -0500 Subject: kern/amd64: mu: Add pmap unmap function Signed-off-by: Ian Moffett --- sys/inc/mu/mmu.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/inc/mu') diff --git a/sys/inc/mu/mmu.h b/sys/inc/mu/mmu.h index da2a286..d9be17a 100644 --- a/sys/inc/mu/mmu.h +++ b/sys/inc/mu/mmu.h @@ -49,6 +49,15 @@ __strong int mu_pmap_map( uint16_t prot, pagesize_t ps ); +/* + * Destroy a virtual to physical address mapping + * + * @vas: Virtual addres space to unmap from + * @va: Virtual address to unmap + * @ps: Pagesize of region covered by virtual address + */ +__strong int mu_pmap_unmap(struct mmu_vas *vas, uintptr_t va, pagesize_t ps); + /* * Copy the current VAS leaving the user-side * zeroed -- cgit v1.2.3