diff options
author | Ian Moffett <ian@osmora.org> | 2024-01-11 23:59:17 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-01-12 00:05:13 -0500 |
commit | 0711c3dd65c1fb818d4574d09da440ed80235279 (patch) | |
tree | f44a5b56820a55e3143219e975ad5c36d97170b4 /sys/include | |
parent | 213679c7c1ee8c5a482f35fbcd62a48758f6cf12 (diff) |
kernel: types: Add vmem specific types
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/types.h | 6 |
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_ */ |