From f3fe5e8d39fc9bbcffb346d0b7329445140a1e93 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 18 Nov 2025 00:43:20 -0500 Subject: kern/amd64: mmu: Add mu_pmap_forkvas() helper The mu_pmap_forkvas() function copies the current virtual address with the user porition zeroed. Signed-off-by: Ian Moffett --- sys/inc/mu/mmu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/inc/mu/mmu.h') diff --git a/sys/inc/mu/mmu.h b/sys/inc/mu/mmu.h index ce52376..945e375 100644 --- a/sys/inc/mu/mmu.h +++ b/sys/inc/mu/mmu.h @@ -34,6 +34,12 @@ #include #include /* shared */ +/* + * Copy the current VAS leaving the user-side + * zeroed + */ +__strong int mu_pmap_forkvas(struct mmu_vas *result); + /* * Read the currently in-use virtual address space * structure -- cgit v1.2.3