aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot/boot.s
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/boot/boot.s')
-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