aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-09 22:02:32 -0400
committerIan Moffett <ian@osmora.org>2024-06-09 22:02:32 -0400
commit05011a452c0ba6a6b2ae2c815cadc2714e4ddb5c (patch)
tree9c6e831cb671380a19b096b208422a498b114670 /sys/include
parent8511af817034267ecdf6cba75351429ad884a4c5 (diff)
kernel: types: Add paddr_t and vaddr_t
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/include/sys/types.h b/sys/include/sys/types.h
index c77663c..2078e78 100644
--- a/sys/include/sys/types.h
+++ b/sys/include/sys/types.h
@@ -59,4 +59,9 @@ typedef size_t uintptr_t;
typedef _Bool bool;
typedef int pid_t;
+#if defined(_KERNEL)
+typedef uintptr_t paddr_t;
+typedef uintptr_t vaddr_t;
+#endif /* _KERNEL */
+
#endif /* _SYS_TYPES_H_ */