aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/boot')
-rw-r--r--arch/x86_64/src/boot/boot.s11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index 38a8af4..7932045 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -352,11 +352,7 @@ prepare_page_maps:
.section .boot_text, "ax", @progbits
.code64
-.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.
+_transition_to_long_mode:
xor %rax, %rax
mov %rax, %ss
mov %rax, %ds
@@ -364,11 +360,6 @@ reload_segment_register:
mov %rax, %fs
mov %rax, %gs
- ret
-
-_transition_to_long_mode:
- call reload_segment_register
-
movl $0xb8000, (vga_buffer_pointer)
call _init