Re: 2.6.0-test2-mm3

From: Raphael Kubo da Costa (suroii@terra.com.br)
Date: Sat Aug 02 2003 - 21:57:07 EST


Ok, here's my first patch. ;)
This is a fix for i386's fpu_system.h, which was causing an error during
the compilation of fpu_entry.c.

--- linux-2.6.0-test2-mm3/arch/i386/math-emu/fpu_system.h 2003-08-02 22:54:44.000000000 -0300
+++ linux-2.6.0-test2-mm3-fix/arch/i386/math-emu/fpu_system.h 2003-08-02 22:53:55.000000000 -0300
@@ -22,7 +22,7 @@
 
 /* s is always from a cpu register, and the cpu does bounds checking
  * during register load --> no further bounds checks needed */
-#define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
+#define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt_pages)[(s) >> 3])
 #define SEG_D_SIZE(x) ((x).b & (3 << 21))
 #define SEG_G_BIT(x) ((x).b & (1 << 23))
 #define SEG_GRANULARITY(x) (((x).b & (1 << 23)) ? 4096 : 1)

-
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 : Thu Aug 07 2003 - 22:00:20 EST