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/src/kernel/cpu/call.cpp | |
| 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/src/kernel/cpu/call.cpp')
| -rw-r--r-- | arch/x86_64/src/kernel/cpu/call.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/cpu/call.cpp b/arch/x86_64/src/kernel/cpu/call.cpp new file mode 100644 index 0000000..98fa248 --- /dev/null +++ b/arch/x86_64/src/kernel/cpu/call.cpp @@ -0,0 +1,9 @@ +#include "arch/kernel/cpu/call.hpp" + +namespace teachos::arch::kernel::cpu +{ + auto call(far_pointer pointer) -> void + { + asm volatile("rex64 lcall *%[input]" : /* no output from call */ : [input] "m"(pointer)); + } +} // namespace teachos::arch::kernel::cpu |
