diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-01 12:25:40 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-01 12:25:40 +0000 |
| commit | 7c045d8ded72017ff11fd4b9b02148987b944caf (patch) | |
| tree | 5976c4420178cb3e7a4a992f7679ceedd1bb2b34 /arch/x86_64/src/kernel/cpu | |
| parent | 5eb8d63a6ece530cb1d56217a046553b4b96245d (diff) | |
| download | teachos-7c045d8ded72017ff11fd4b9b02148987b944caf.tar.xz teachos-7c045d8ded72017ff11fd4b9b02148987b944caf.zip | |
WIP experiment with converting GDT to 8-Byte entries
Diffstat (limited to 'arch/x86_64/src/kernel/cpu')
| -rw-r--r-- | arch/x86_64/src/kernel/cpu/call.cpp | 3 |
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 |
