aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/include/arch/kernel/cpu/tr.hpp2
-rw-r--r--arch/x86_64/src/kernel/cpu/tr.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86_64/include/arch/kernel/cpu/tr.hpp b/arch/x86_64/include/arch/kernel/cpu/tr.hpp
index 5f99472..562fab7 100644
--- a/arch/x86_64/include/arch/kernel/cpu/tr.hpp
+++ b/arch/x86_64/include/arch/kernel/cpu/tr.hpp
@@ -17,7 +17,7 @@ namespace teachos::arch::kernel::cpu
auto store_task_register() -> uint16_t;
/**
- * @brief Loads the tss_pointer into the task register (TR).
+ * @brief Loads the gdt offset to the tss segment descriptor into the task register (TR).
*/
auto load_task_register(uint16_t gdt_offset) -> void;
diff --git a/arch/x86_64/src/kernel/cpu/tr.cpp b/arch/x86_64/src/kernel/cpu/tr.cpp
index a28b9fc..ad38d09 100644
--- a/arch/x86_64/src/kernel/cpu/tr.cpp
+++ b/arch/x86_64/src/kernel/cpu/tr.cpp
@@ -9,7 +9,6 @@ namespace teachos::arch::kernel::cpu
return current_value;
}
- // TODO: Is this really correct?
auto load_task_register(uint16_t gdt_offset) -> void
{
asm volatile("ltr %[input]" : /* no output from call */ : [input] "m"(gdt_offset));