diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-16 12:50:14 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-16 12:50:14 +0000 |
| commit | 37cb71ca7771a28835e3ed6aa5ed0797c9ba50fa (patch) | |
| tree | 5ebd266a5438e72458b4eac891807fb0509ec834 /arch/x86_64 | |
| parent | 36758071881088b27a52cee4e5653f6cf6a79a78 (diff) | |
| download | teachos-37cb71ca7771a28835e3ed6aa5ed0797c9ba50fa.tar.xz teachos-37cb71ca7771a28835e3ed6aa5ed0797c9ba50fa.zip | |
add comment
Diffstat (limited to 'arch/x86_64')
| -rw-r--r-- | arch/x86_64/include/arch/kernel/cpu/tr.hpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/src/kernel/cpu/tr.cpp | 1 |
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)); |
