From 99019721a9e147c49becc466c5427609b937aca8 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 21 Apr 2021 18:54:50 +0200 Subject: Enable interrupts --- src/boot/boot.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/boot') 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 -- cgit v1.2.3