]> git.corax.cc Git - corax/commitdiff
Set the limit of the TSS descriptor to TSS_SIZE + 1
authorMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 08:47:30 +0000 (17:47 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 08:47:30 +0000 (17:47 +0900)
kernel/arch/init.S

index 6f9961b1b093ae060e30ab6e89541cc8f3bc26a9..ffe7bcfdfd614e340fecb1f72817a6a6560bd964 100644 (file)
@@ -243,7 +243,7 @@ arch_init:
     movl    $_cpu, %eax
     addl    $TSS_OFFSET, %eax
     movl    %eax, 8(%esp)
-    movl    $TSS_SIZE, 12(%esp)
+    movl    $(TSS_SIZE + 1), 12(%esp)
     call    _segment_descriptor_set
 
     movw    $((GDT_ENTRIES * 8) + 1), %ax