summaryrefslogtreecommitdiff
path: root/sys/inc/mu/mmu.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-18 00:43:20 -0500
committerIan Moffett <ian@osmora.org>2025-11-18 00:43:20 -0500
commitf3fe5e8d39fc9bbcffb346d0b7329445140a1e93 (patch)
tree8b6e26b015fc1e60964c1f1db1da8a910a7606fc /sys/inc/mu/mmu.h
parent7dd5178ddd0078d2e1ef38722bff1172f79f0f05 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/inc/mu/mmu.h')
-rw-r--r--sys/inc/mu/mmu.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -35,6 +35,12 @@
#include <md/vas.h> /* 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
*/