From: Matthias Kruk Date: Wed, 25 Sep 2019 08:47:30 +0000 (+0900) Subject: Set the limit of the TSS descriptor to TSS_SIZE + 1 X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=1cbff4ebfeb4a743d7901943502edc8b90362774;p=corax Set the limit of the TSS descriptor to TSS_SIZE + 1 --- diff --git a/kernel/arch/init.S b/kernel/arch/init.S index 6f9961b..ffe7bcf 100644 --- a/kernel/arch/init.S +++ b/kernel/arch/init.S @@ -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