aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/boot
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2025-02-27 08:23:59 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2025-02-27 08:23:59 +0000
commitcc67705d0154f1d55aa234714389ec2db00e9406 (patch)
tree326e841bf04ab71ae5a2eb0a34266dc553ed1153 /arch/x86_64/src/boot
parentb7a37a1899772e16ce5550c6be3ff9cfd9825fe7 (diff)
parent3fb836101a2032e93f7b82c924ce208d7377a5ea (diff)
downloadteachos-cc67705d0154f1d55aa234714389ec2db00e9406.tar.xz
teachos-cc67705d0154f1d55aa234714389ec2db00e9406.zip
Merge remote-tracking branch 'origin/develop_ba' into feat_inital_context_switching
Diffstat (limited to 'arch/x86_64/src/boot')
-rw-r--r--arch/x86_64/src/boot/boot.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/src/boot/boot.s b/arch/x86_64/src/boot/boot.s
index 8d27ea1..2197dce 100644
--- a/arch/x86_64/src/boot/boot.s
+++ b/arch/x86_64/src/boot/boot.s
@@ -197,8 +197,10 @@ _start:
call enable_paging
call enable_sse
+ cli // Clears the interrupt flag during the GDT setup
lgdt (global_descriptor_table_pointer)
jmp $global_descriptor_table_code,$_transition_to_long_mode
+ // The interrupt flag is set in cpp after setting up the GDT
call halt