summaryrefslogtreecommitdiff
path: root/sys/include/vm
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-29 21:55:23 -0500
committerIan Moffett <ian@osmora.org>2024-02-29 21:55:23 -0500
commit31aa84528af5a92c3019e6abaa949eb20a4e73d9 (patch)
treef65288c97f2d965ddb785f47b80403454caaaaec /sys/include/vm
parent4e5226d3f399db93627538f224f42b3637edf223 (diff)
kernel/amd64: pmap: Add routine to switch vas
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm')
-rw-r--r--sys/include/vm/pmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h
index c591605..516c2ea 100644
--- a/sys/include/vm/pmap.h
+++ b/sys/include/vm/pmap.h
@@ -72,6 +72,12 @@ struct vm_ctx {
struct vas pmap_create_vas(struct vm_ctx *);
/*
+ * Switch the current virtual address space
+ * to another.
+ */
+void pmap_switch_vas(struct vm_ctx *, struct vas);
+
+/*
* Read virtual address space descriptor
* and return it.
*/