From 1cbff4ebfeb4a743d7901943502edc8b90362774 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 25 Sep 2019 17:47:30 +0900 Subject: [PATCH] Set the limit of the TSS descriptor to TSS_SIZE + 1 --- kernel/arch/init.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3