From 81c7b8dac0aba39f7d23bf65fc2ea456aab31d89 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 21 Aug 2017 00:07:38 +0200 Subject: [PATCH] fix size of the GDT (forgot null descriptor) --- arch/x86/include/asm/gdt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/gdt.h b/arch/x86/include/asm/gdt.h index e66ef8972..1f8c7f01d 100644 --- a/arch/x86/include/asm/gdt.h +++ b/arch/x86/include/asm/gdt.h @@ -111,7 +111,7 @@ typedef struct { } __attribute__ ((packed)) gdt_ptr_t; // a TSS descriptor is twice larger than a code/data descriptor -#define GDT_ENTRIES (6+MAX_CORES*2) +#define GDT_ENTRIES (7+MAX_CORES*2) #if GDT_ENTRIES > 8192 #error Too many GDT entries!