aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp b/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp
new file mode 100644
index 0000000..8a05956
--- /dev/null
+++ b/arch/x86_64/src/context_switching/descriptor_table/gdt_flags.cpp
@@ -0,0 +1,6 @@
+#include "arch/context_switching/descriptor_table/gdt_flags.hpp"
+
+namespace teachos::arch::context_switching::descriptor_table
+{
+ auto gdt_flags::contains_flags(std::bitset<4U> other) const -> bool { return (flags & other) == other; }
+} // namespace teachos::arch::context_switching::descriptor_table