aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-04-27 11:20:02 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-04-27 11:20:02 +0000
commit7261c64bb236a313ed8846a9c9dbded6890a9e98 (patch)
tree3f43ab7d1e87025dd622bbc9cd56aad5d37a2f78 /arch/x86_64/src/kernel/main.cpp
parentc865eff02ae1978b4f665432d853374d1ffacecf (diff)
downloadteachos-7261c64bb236a313ed8846a9c9dbded6890a9e98.tar.xz
teachos-7261c64bb236a313ed8846a9c9dbded6890a9e98.zip
wip implement syscall in cpp
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
-rw-r--r--arch/x86_64/src/kernel/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index 05c879e..e737d44 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -63,6 +63,7 @@ namespace teachos::arch::kernel
memory::heap::global_heap_allocator::register_heap_allocator(memory::heap::heap_allocator_type::LINKED_LIST);
// heap_test();
+ context_switching::setup_syscall();
context_switching::switch_to_user_mode();
}
} // namespace teachos::arch::kernel