From 0711c3dd65c1fb818d4574d09da440ed80235279 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 11 Jan 2024 23:59:17 -0500 Subject: kernel: types: Add vmem specific types Signed-off-by: Ian Moffett --- sys/include/sys/types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys') 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_ */ -- cgit v1.2.3