diff options
Diffstat (limited to 'sys/include/vm')
-rw-r--r-- | sys/include/vm/pmap.h | 4 |
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. |