diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-18 17:18:37 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-18 17:18:37 +0100 |
| commit | e7ccb96aecae7b231fb05818d7e45a767aebc31d (patch) | |
| tree | 68f7a623018d025b3fb6d10ce49d022242cc14f2 /arch/x86_64/include | |
| parent | 12c0586ee15cadfa178e6982dc0f76b047cb2df9 (diff) | |
| download | teachos-e7ccb96aecae7b231fb05818d7e45a767aebc31d.tar.xz teachos-e7ccb96aecae7b231fb05818d7e45a767aebc31d.zip | |
kstd: introduce strong type for memory amounts
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/page_table.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/page_table.hpp b/arch/x86_64/include/arch/memory/page_table.hpp index 2889d38..3cbb0af 100644 --- a/arch/x86_64/include/arch/memory/page_table.hpp +++ b/arch/x86_64/include/arch/memory/page_table.hpp @@ -4,6 +4,7 @@ #include "kapi/memory.hpp" #include <kstd/ext/bitfield_enum> +#include <kstd/units> #include <array> #include <cstddef> @@ -116,7 +117,7 @@ namespace arch::memory }; //! The maximum number of entries in this table. - constexpr auto static entry_count{kapi::memory::page::size / sizeof(entry)}; + constexpr auto static entry_count{kapi::memory::page::size / kstd::units::bytes{sizeof(entry)}}; //! Get the entry at the given index. //! |
