From 31aa84528af5a92c3019e6abaa949eb20a4e73d9 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 29 Feb 2024 21:55:23 -0500 Subject: kernel/amd64: pmap: Add routine to switch vas Signed-off-by: Ian Moffett --- sys/include/vm/pmap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/include') 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 @@ -71,6 +71,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. -- cgit v1.2.3