summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-26 10:13:21 -0500
committerIan Moffett <ian@osmora.org>2024-02-26 10:13:21 -0500
commitb3ef38de81c03b5f86fd69805351d64760a1bf09 (patch)
tree431661ea1e0fb903e3f78aae3ebd06911d6c0761 /sys/include
parent4c2d76026771b247e7f1902333be60e43a444bc4 (diff)
kernel/amd64: pmap: Add support for creating VAS
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/vm/pmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h
index fcef35d..6e37a00 100644
--- a/sys/include/vm/pmap.h
+++ b/sys/include/vm/pmap.h
@@ -53,6 +53,8 @@
#define PMAP_WRITABLE __BIT(0) /* Writable */
#define PMAP_EXEC __BIT(1) /* Executable */
+#define is_vas_valid(vas) (vas.top_level != 0)
+
/*
* vm_ctx - Per core virtual memory context
*/
@@ -63,6 +65,8 @@ struct vm_ctx {
struct spinlock dynalloc_lock;
};
+struct vas pmap_create_vas(struct vm_ctx *);
+
/*
* Read virtual address space descriptor
* and return it.