aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/pre/src/kernel/cpu/tr.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-24 17:39:33 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-27 07:02:35 +0100
commit3888a111be2e6b2a53b10752de36d58f18fc8874 (patch)
tree035cc0389fc4116699ee1a6bb6846bf5266a5049 /arch/x86_64/pre/src/kernel/cpu/tr.cpp
parentcb60cdebdc36dd2358fe1ce06eec197e213af491 (diff)
downloadkernel-3888a111be2e6b2a53b10752de36d58f18fc8874.tar.xz
kernel-3888a111be2e6b2a53b10752de36d58f18fc8874.zip
x86_64: remove stale source code
Diffstat (limited to 'arch/x86_64/pre/src/kernel/cpu/tr.cpp')
-rw-r--r--arch/x86_64/pre/src/kernel/cpu/tr.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86_64/pre/src/kernel/cpu/tr.cpp b/arch/x86_64/pre/src/kernel/cpu/tr.cpp
deleted file mode 100644
index a435540..0000000
--- a/arch/x86_64/pre/src/kernel/cpu/tr.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "arch/kernel/cpu/tr.hpp"
-
-namespace teachos::arch::kernel::cpu
-{
- auto store_task_register() -> uint16_t
- {
- uint16_t current_value{};
- asm("str %[output]" : [output] "=r"(current_value));
- return current_value;
- }
-
- auto load_task_register(uint16_t gdt_offset) -> void
- {
- asm volatile("ltr %[input]" : /* no output from call */ : [input] "m"(gdt_offset));
- }
-} // namespace teachos::arch::kernel::cpu