diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-30 22:10:37 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-30 22:10:37 -0400 |
commit | ccdd5b6d2f196cb6a2add34f71eebccbedb35c55 (patch) | |
tree | 2211f94c9d9840f994da9148590cfeacf03ad6ca /sys/arch | |
parent | 9d0ac7b5da9f94224cbc9fcb2f60a84b15fc68fa (diff) |
kernel/amd64: pmap: Add pmap_destroy_vas()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 108cd91..0f41e7a 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -224,6 +224,12 @@ pmap_new_vas(struct vas *res) return 0; } +void +pmap_destroy_vas(struct vas vas) +{ + vm_free_frame(vas.top_level, 1); +} + struct vas pmap_read_vas(void) { |