fpu-emu broken in 2.1.96

David Burrows (snadge@gemcorp.com.au)
Wed, 15 Apr 1998 17:16:39 +1000 (EST)


the compile error..

fpu_entry.c: In function `math_emulate':
fpu_entry.c:193: arithmetic on pointer to an incomplete type
fpu_entry.c:193: dereferencing pointer to incomplete type

offending piece of code..

if ( SEG_D_SIZE(code_descriptor = LDT_DESCRIPTOR(FPU_CS)) )

change which broke the code..

linux/arch/i386/math-emu/fpu_system.h

-#define LDT_DESCRIPTOR(s) (current->ldt[(s) >> 3])
+#define LDT_DESCRIPTOR(s) (((struct ldt_struct *)current->mm->segments)[(s) >> 3])

Whos great idea was this change anyway? :) And more importantly, why?

Cheers,

Dave.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu