summaryrefslogtreecommitdiff
path: root/kernel/src/boot/boot64.S
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/boot/boot64.S')
-rw-r--r--kernel/src/boot/boot64.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/src/boot/boot64.S b/kernel/src/boot/boot64.S
index 68eae38..cc79c36 100644
--- a/kernel/src/boot/boot64.S
+++ b/kernel/src/boot/boot64.S
@@ -4,12 +4,12 @@
.global begin_long_mode
begin_long_mode:
// reload segment registers
- mov $0x10, %eax
- mov %eax, %ss
- mov %eax, %ds
- mov %eax, %es
- mov %eax, %fs
- mov %eax, %gs
+ mov $0x10, %ax
+ mov %ax, %ds
+ mov %ax, %es
+ mov %ax, %ss
+ mov %ax, %fs
+ mov %ax, %gs
popq %rdi
popq %rsi