aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/cpu/call.cpp
blob: 98fa24803127dc6176c567a6046886c1fd46c750 (plain)
1
2
3
4
5
6
7
8
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