diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-07 15:42:38 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-04-07 15:42:38 +0000 |
| commit | 8a23a47425162894141f4eac488fb1f1bb3f7dae (patch) | |
| tree | 0ae77c31c4a404ead867f62f1b8072f082d65ec4 /arch/x86_64/include | |
| parent | 3a95e601bbcb64fd80d9d5d9bd6e1f6d3c31a89b (diff) | |
| download | teachos-8a23a47425162894141f4eac488fb1f1bb3f7dae.tar.xz teachos-8a23a47425162894141f4eac488fb1f1bb3f7dae.zip | |
Fix naming from jmp to call for Far Call
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/kernel/cpu/call.hpp (renamed from arch/x86_64/include/arch/kernel/cpu/jmp.hpp) | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/arch/x86_64/include/arch/kernel/cpu/jmp.hpp b/arch/x86_64/include/arch/kernel/cpu/call.hpp index 1657c18..3c43304 100644 --- a/arch/x86_64/include/arch/kernel/cpu/jmp.hpp +++ b/arch/x86_64/include/arch/kernel/cpu/call.hpp @@ -8,29 +8,22 @@ namespace teachos::arch::kernel::cpu { /** - * @brief Far jump - A jump to an instruction located in a different segment. + * @brief Far Pointer. Address to function located in another code segment. */ struct far_pointer { - void (*function)(); ///< Address of the function we want to jump too. (0-63) + void (*function)(); ///< Address of the function we want to call. (0-63) context_switching::interrupt_descriptor_table::segment_selector selector; ///< Segment selector pointing to the GDT entry we want to load into register CS. (64-79) }; /** - * @brief Near jump - A jump to an instruction within the current code segment. - * - * @param address Address we want to jump to. - */ - auto jmp(std::size_t address) -> void; - - /** - * @brief Far jump - A jump to an instruction located in a different segment than the current code segment but at the + * @brief Far call - A call to an instruction located in a different segment than the current code segment but at the * same privilege level. * - * @param pointer 64-bit operand size far pointer that we should jump too. + * @param pointer 64-bit operand size far pointer that we want to call. */ - auto jmp(far_pointer pointer) -> void; + auto call(far_pointer pointer) -> void; } // namespace teachos::arch::kernel::cpu |
