aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu/ss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kernel/cpu/ss.cpp')
-rw-r--r--arch/x86_64/src/kernel/cpu/ss.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86_64/src/kernel/cpu/ss.cpp b/arch/x86_64/src/kernel/cpu/ss.cpp
deleted file mode 100644
index 0978eca..0000000
--- a/arch/x86_64/src/kernel/cpu/ss.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "arch/kernel/cpu/ss.hpp"
-
-namespace teachos::arch::kernel::cpu
-{
- auto read_ss() -> context_switching::interrupt_descriptor_table::segment_selector
- {
- context_switching::interrupt_descriptor_table::segment_selector segment_selector{};
- asm volatile("mov %%ss, %[output]" : [output] "=m"(segment_selector));
- return segment_selector;
- }
-
- auto write_ss(context_switching::interrupt_descriptor_table::segment_selector selector) -> void
- {
- asm volatile("mov %[input], %%ss" : /* no output from call */ : [input] "m"(selector));
- }
-} // namespace teachos::arch::kernel::cpu