aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-03-29 09:30:50 +0100
committerFabian Imhof <fabian.imhof@ost.ch>2025-03-29 09:30:50 +0100
commit98be1b722f17e77880e8c0b0f464a9ba31230fc4 (patch)
treeaa693a6f6edc717a1f3e184141d0ee1c150c57d7 /arch/x86_64/src/boot
parent437c3554f9a86b6347d97f5e2a82543c1e068b05 (diff)
parentfbd1ebe4f7c5985554fdca7c7fc05de15d47dd3a (diff)
downloadteachos-98be1b722f17e77880e8c0b0f464a9ba31230fc4.tar.xz
teachos-98be1b722f17e77880e8c0b0f464a9ba31230fc4.zip
Merge branch 'fmorgner/patch-context-switching' into 'feat_inital_context_switching'
Fix GDT and CS reload See merge request teachos/kernel!5
Diffstat (limited to 'arch/x86_64/src/boot')
-rw-r--r--arch/x86_64/src/boot/boot.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index bf150a3..108dbe5 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -356,6 +356,9 @@ prepare_page_maps:
.global reload_segment_register
reload_segment_register:
+ // FIXME: maybe we should set the actually correct values here. We'd need to communicate them down from C++.
+ // Alternatively, we could probably implement this as a [[gnu::naked]] function in C++, to have easier access to
+ // arguments and symbols. Maybe later.
xor %rax, %rax
mov %rax, %ss
mov %rax, %ds