From 37cb71ca7771a28835e3ed6aa5ed0797c9ba50fa Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Sun, 16 Mar 2025 12:50:14 +0000 Subject: add comment --- arch/x86_64/include/arch/kernel/cpu/tr.hpp | 2 +- arch/x86_64/src/kernel/cpu/tr.cpp | 1 - 2 files changed, 1 insertion(+), 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)); -- cgit v1.2.3