aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kernel/cpu')
-rw-r--r--arch/x86_64/src/kernel/cpu/call.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/cpu/call.cpp b/arch/x86_64/src/kernel/cpu/call.cpp
index 98fa248..932d248 100644
--- a/arch/x86_64/src/kernel/cpu/call.cpp
+++ b/arch/x86_64/src/kernel/cpu/call.cpp
@@ -4,6 +4,7 @@ namespace teachos::arch::kernel::cpu
{
auto call(far_pointer pointer) -> void
{
- asm volatile("rex64 lcall *%[input]" : /* no output from call */ : [input] "m"(pointer));
+ // asm volatile("rex64 lcall *%[input]" : /* no output from call */ : [input] "m"(pointer));
+ asm volatile("ljmp *%0" : : "m"(pointer));
}
} // namespace teachos::arch::kernel::cpu