diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-08-19 10:31:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-08-19 10:31:23 +0200 |
| commit | e813d9576bd1e3366b2756ec2b00d1627be8e58a (patch) | |
| tree | 64a0ba302b6a7ed10e153ffcd9f5127180ab88ec /kapi | |
| parent | c12fb52a860f4ae3bd6636e7feabeb7893cf27a8 (diff) | |
| download | kernel-e813d9576bd1e3366b2756ec2b00d1627be8e58a.tar.xz kernel-e813d9576bd1e3366b2756ec2b00d1627be8e58a.zip | |
kapi: use bytes for size in boot modules
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/boot_modules/module.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kapi/kapi/boot_modules/module.hpp b/kapi/kapi/boot_modules/module.hpp index 99e7b2ca..4f4cc0a9 100644 --- a/kapi/kapi/boot_modules/module.hpp +++ b/kapi/kapi/boot_modules/module.hpp @@ -3,7 +3,8 @@ #include <kapi/memory.hpp> -#include <cstddef> +#include <kstd/units.hpp> + #include <string_view> namespace kapi::boot_modules @@ -11,16 +12,15 @@ namespace kapi::boot_modules //! @addtogroup kapi-boot_modules //! @{ - - // ! The boot module struct - // ! - // ! The boot module struct represents a module loaded by the bootloader, and contains information about it, such as - // ! its name, virtual start address, and size. + //! A single boot module. struct module { + //! The name of this module. std::string_view name{}; + //! The linear address to which the module was loaded. memory::linear_address start_address{}; - std::size_t size{}; + //! The size of the module. + kstd::bytes size{}; }; //! @} |
