blob: 205c4a93eb6994f81b8f85c3667c1b3db7e381b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "arch/kernel/cpu/jmp.hpp"
namespace teachos::arch::kernel::cpu
{
auto jmp(uint64_t address) -> void
{
asm volatile("jmp *%[input]" : /* no output from call */ : [input] "r"(address));
}
auto jmp(far_pointer pointer) -> void
{
asm volatile("jmp *%[input]" : /* no output from call */ : [input] "m"(pointer));
}
} // namespace teachos::arch::kernel::cpu
|