blob: 6564b763c5741eb338255216af87a6987a74b385 (
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
|