diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-14 21:02:10 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-14 21:03:09 -0400 |
commit | 3e3ff0acccfbb1d251a9b9bacbf0851c9de69561 (patch) | |
tree | d48fa68e58c0395f27f848d4872ea2d2bf7f1f50 /sys/include/vm | |
parent | 7a32267fcc81af31d595373884911d503b0a9df8 (diff) |
kernel/amd64: pmap: Add pmap_free_vas()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm')
-rw-r--r-- | sys/include/vm/pmap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h index ebabd32..3380199 100644 --- a/sys/include/vm/pmap.h +++ b/sys/include/vm/pmap.h @@ -90,6 +90,12 @@ struct vas pmap_read_vas(void); int pmap_map(struct vm_ctx *, struct vas, vaddr_t, paddr_t, vm_prot_t); /* + * Get rid of a virtual address space and free + * resources. + */ +int pmap_free_vas(struct vm_ctx *, struct vas); + +/* * Unmap a page. */ int pmap_unmap(struct vm_ctx *, struct vas, vaddr_t); |