aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/context_switching/main.cpp
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-28 10:52:25 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-03-28 10:52:25 +0000
commit437c3554f9a86b6347d97f5e2a82543c1e068b05 (patch)
tree419241f4d0764eb211fb2e0005b003acb2a304ed /arch/x86_64/src/context_switching/main.cpp
parente0eae9b9e905a1842b333823bfdb7c253cda8d1e (diff)
downloadteachos-437c3554f9a86b6347d97f5e2a82543c1e068b05.tar.xz
teachos-437c3554f9a86b6347d97f5e2a82543c1e068b05.zip
Attempt to fix ljmp. Might not be possible in Long mode
Diffstat (limited to 'arch/x86_64/src/context_switching/main.cpp')
-rw-r--r--arch/x86_64/src/context_switching/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/context_switching/main.cpp b/arch/x86_64/src/context_switching/main.cpp
index c3c0cf0..5d19f23 100644
--- a/arch/x86_64/src/context_switching/main.cpp
+++ b/arch/x86_64/src/context_switching/main.cpp
@@ -15,7 +15,7 @@ namespace teachos::arch::context_switching
interrupt_descriptor_table::segment_selector segment_selector{
1U, interrupt_descriptor_table::segment_selector::REQUEST_LEVEL_KERNEL};
- kernel::cpu::far_pointer pointer{boot::segment_register_reload_pointer, segment_selector};
+ kernel::cpu::far_pointer pointer{boot::reload_segment_register, segment_selector};
kernel::cpu::jmp(pointer);
// Load task state segment descriptor from the last element in the global descriptor table, done by calculating