aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-10 16:05:31 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-10 16:05:31 +0000
commit52fffdf2c76def4a875e0328eb45d74c6e97e805 (patch)
tree39e712ac4eaa968dd0d3adf4110aa7493cd58713 /arch/x86_64/src
parentc5151739698620e77622423c109e638f903f01c4 (diff)
downloadteachos-52fffdf2c76def4a875e0328eb45d74c6e97e805.tar.xz
teachos-52fffdf2c76def4a875e0328eb45d74c6e97e805.zip
Adjust segment descriptor to use defined helpers
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/context_switching/descriptor_table/segment_descriptor.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86_64/src/context_switching/descriptor_table/segment_descriptor.cpp b/arch/x86_64/src/context_switching/descriptor_table/segment_descriptor.cpp
new file mode 100644
index 0000000..fb9c034
--- /dev/null
+++ b/arch/x86_64/src/context_switching/descriptor_table/segment_descriptor.cpp
@@ -0,0 +1,13 @@
+#include "arch/context_switching/descriptor_table/segment_descriptor.hpp"
+
+namespace teachos::arch::context_switching::descriptor_table
+{
+ segment_descriptor::segment_descriptor(uint128_t flags)
+ : _reserved(flags)
+ , _access(flags)
+ , _flag(flags, segment_descriptor_type::SYSTEM_SEGMENT)
+ , _base(flags)
+ , _limit(flags)
+ {
+ }
+} // namespace teachos::arch::context_switching::descriptor_table