]> git.corax.cc Git - corax/commitdiff
Use KERNEL_CODE macro when initializing the IDT, instead of numerals
authorMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 09:24:53 +0000 (18:24 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 09:24:53 +0000 (18:24 +0900)
kernel/arch/init.S

index ffe7bcfdfd614e340fecb1f72817a6a6560bd964..c25f7d109db3d627ef6ff537d6f6834b820c67ba 100644 (file)
@@ -311,7 +311,7 @@ _update_cs:
     addl    $IDT_OFFSET, %edi
 
     movl    $DPL_USER, 16(%esp)
-    movl    $8, 8(%esp)
+    movl    $KERNEL_CODE, 8(%esp)
     movl    $SD_TYPE_INT_GATE, 4(%esp)
     movl    %edi, (%esp)