diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-23 19:01:29 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-23 19:02:15 -0400 |
commit | 347a1a0eeb5aa84e287e443a468a47a0fafd153f (patch) | |
tree | 70f003515b98961301669b25ca60f60df0fdfbd0 /sys/include | |
parent | 2e2dc610d2abd6c12cf6dcda290b23fb77ecd704 (diff) |
kernel/amd64: pmap: Add function to create new VAS
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/vm/pmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h index ec669a8..dccfe0d 100644 --- a/sys/include/vm/pmap.h +++ b/sys/include/vm/pmap.h @@ -52,6 +52,11 @@ struct vas pmap_read_vas(void); void pmap_switch_vas(struct vas vas); /* + * Create a new virtual address space. + */ +int pmap_new_vas(struct vas *res); + +/* * Create a virtual memory mapping of a single page. */ int pmap_map(struct vas vas, vaddr_t va, paddr_t pa, vm_prot_t prot); |