From ccdd5b6d2f196cb6a2add34f71eebccbedb35c55 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 30 Jun 2024 22:10:37 -0400 Subject: kernel/amd64: pmap: Add pmap_destroy_vas() Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/pmap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/arch') 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) { -- cgit v1.2.3