[PATCH] [2.5 i386] Fix AP GDT descs to have limit = size - 1

From: Luca Barbieri (ldb@ldb.ods.org)
Date: Wed Aug 07 2002 - 10:54:31 EST


This is the right thing (also done by head.s).

diff --exclude-from=/home/ldb/src/linux-exclude -urNd a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c
--- a/arch/i386/kernel/cpu/common.c 2002-08-06 10:26:11.000000000 +0200
+++ b/arch/i386/kernel/cpu/common.c 2002-08-07 17:47:05.000000000 +0200
@@ -451,7 +451,7 @@
          */
         if (cpu) {
                 memcpy(cpu_gdt_table[cpu], cpu_gdt_table[0], GDT_SIZE);
- cpu_gdt_descr[cpu].size = GDT_SIZE;
+ cpu_gdt_descr[cpu].size = GDT_SIZE - 1;
                 cpu_gdt_descr[cpu].address = (unsigned long)cpu_gdt_table[cpu];
         }
 



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:36 EST