aboutsummaryrefslogtreecommitdiff
path: root/src/boot/boot.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/boot.S')
-rw-r--r--src/boot/boot.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/boot/boot.S b/src/boot/boot.S
index 8391e70..d90c4d8 100644
--- a/src/boot/boot.S
+++ b/src/boot/boot.S
@@ -112,20 +112,20 @@ lgdt (gdtr)
jmp $0x08, $new_cs
new_cs:
+# Pay attention here!
+# You are in long mode here
+# Thus if you want to add any instructions
+# You should use .code64 before
+.code64
mov $0x10, %ax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
mov %ax, %ss
-
-# Pay attention here!
-# You are in long mode here
-# Thus if you want to add any instructions
-# You should use .code64 before
+mov $STACK_LOCATION, %esp
# Run boucane
-.code64
jmp boucane
# GDT