aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu/call.cpp
blob: 932d248bcbd37d35971558139823a81842932a7c (plain)
1
2
3
4
5
6
7
8
9
10
#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));
    asm volatile("ljmp *%0" : : "m"(pointer));
  }
}  // namespace teachos::arch::kernel::cpu