From a56d69e2608f08e5f8c2b1595d3496a5c8c68162 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 8 Feb 2026 11:02:35 +0000 Subject: [PATCH] kernel: add a type to represent boot modules --- include/mango/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/mango/types.h b/include/mango/types.h index 55c206e..54f143e 100644 --- a/include/mango/types.h +++ b/include/mango/types.h @@ -1,14 +1,22 @@ #ifndef MANGO_TYPES_H_ #define MANGO_TYPES_H_ +#include #include #define CYCLES_MAX UINT64_MAX typedef uintptr_t phys_addr_t; +typedef uintptr_t virt_addr_t; typedef uint64_t cycles_t; typedef uint64_t sectors_t; +typedef uint64_t off_t; typedef unsigned int umode_t; +struct boot_module { + phys_addr_t mod_base; + size_t mod_size; +}; + #endif