aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-21 18:54:50 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-21 18:54:50 +0200
commit99019721a9e147c49becc466c5427609b937aca8 (patch)
tree3b187d90bdb606a9c27760cd6e187aeb995fd956 /src/boot
parent2f712d027b38bebd571e4fa673f0d642b59e3c98 (diff)
Enable interrupts
Diffstat (limited to 'src/boot')
-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