summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-11 23:59:17 -0500
committerIan Moffett <ian@osmora.org>2024-01-12 00:05:13 -0500
commit0711c3dd65c1fb818d4574d09da440ed80235279 (patch)
treef44a5b56820a55e3143219e975ad5c36d97170b4 /sys
parent213679c7c1ee8c5a482f35fbcd62a48758f6cf12 (diff)
kernel: types: Add vmem specific types
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/sys/types.h b/sys/include/sys/types.h
index 4861d4a..29f4421 100644
--- a/sys/include/sys/types.h
+++ b/sys/include/sys/types.h
@@ -66,4 +66,10 @@ typedef _Bool bool;
typedef ssize_t off_t;
typedef size_t uintptr_t;
+#if defined(_KERNEL)
+typedef uintptr_t vaddr_t; /* Virtual address */
+typedef uintptr_t paddr_t; /* Physical address */
+typedef uint32_t vm_prot_t; /* Access flags */
+#endif /* defined(_KERNEL) */
+
#endif /* !_SYS_TYPES_H_ */