aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/context_switching')
-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