aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/context_switching/main.cpp')
-rw-r--r--arch/x86_64/src/context_switching/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/src/context_switching/main.cpp b/arch/x86_64/src/context_switching/main.cpp
index faaf831..c949488 100644
--- a/arch/x86_64/src/context_switching/main.cpp
+++ b/arch/x86_64/src/context_switching/main.cpp
@@ -1,5 +1,6 @@
#include "arch/context_switching/main.hpp"
+#include "arch/boot/pointers.hpp"
#include "arch/exception_handling/assert.hpp"
#include "arch/kernel/cpu/call.hpp"
#include "arch/kernel/cpu/control_register.hpp"
@@ -59,7 +60,8 @@ namespace teachos::arch::context_switching
// People claim that SYSENTER is for 32-Bit, while SYSCALL is for 64-Bit!
// asm volatile("INT $0x80");
- asm volatile("SYSCALL");
+ // asm volatile("SYSCALL");
+ boot::syscall_trampoline();
video::vga::text::write("Successfully entered user mode!", video::vga::text::common_attributes::green_on_black);
}