aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/arch/cpu/global_descriptor_table.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/arch/cpu/global_descriptor_table.hpp b/arch/x86_64/arch/cpu/global_descriptor_table.hpp
index e485d65c..986dd566 100644
--- a/arch/x86_64/arch/cpu/global_descriptor_table.hpp
+++ b/arch/x86_64/arch/cpu/global_descriptor_table.hpp
@@ -23,7 +23,7 @@ namespace arch::cpu
{
template<std::size_t GdtSize>
global_descriptor_table_pointer(global_descriptor_table<GdtSize> const & gdt)
- : size{GdtSize * sizeof(segment_descriptor) - 1}
+ : size{GdtSize - 1}
, address{kapi::memory::physical_address{std::bit_cast<std::uintptr_t>(&gdt)}.raw()}
{}