diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/vm/pmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/include/vm/pmap.h b/sys/include/vm/pmap.h index 4d7a06f..e35d14a 100644 --- a/sys/include/vm/pmap.h +++ b/sys/include/vm/pmap.h @@ -49,6 +49,10 @@ #include <sys/types.h> #include <sys/spinlock.h> +/* prot flags for mappings */ +#define PMAP_WRITABLE __BIT(0) /* Writable */ +#define PMAP_EXEC __BIT(1) /* Executable */ + /* * vm_ctx - Per core virtual memory context */ @@ -65,4 +69,9 @@ struct vm_ctx { */ struct vas pmap_read_vas(void); +/* + * Map a physical address to a virtual address. + */ +int pmap_map(struct vm_ctx *, vaddr_t, paddr_t, vm_prot_t); + #endif /* _VM_PMAP_H_ */ |