This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / x86_64 / ia32 / fpu32.c
index 1c75019..f9a2638 100644 (file)
@@ -28,17 +28,16 @@ static inline unsigned short twd_i387_to_fxsr(unsigned short twd)
 static inline unsigned long twd_fxsr_to_i387(struct i387_fxsave_struct *fxsave)
 {
        struct _fpxreg *st = NULL;
-       unsigned long tos = (fxsave->swd >> 11) & 7;
        unsigned long twd = (unsigned long) fxsave->twd;
        unsigned long tag;
        unsigned long ret = 0xffff0000;
        int i;
 
-#define FPREG_ADDR(f, n)       ((void *)&(f)->st_space + (n) * 16);
+#define FPREG_ADDR(f, n)       ((char *)&(f)->st_space + (n) * 16);
 
        for (i = 0 ; i < 8 ; i++) {
                if (twd & 0x1) {
-                       st = FPREG_ADDR( fxsave, (i - tos) & 7 );
+                       st = (struct _fpxreg *) FPREG_ADDR( fxsave, i );
 
                        switch (st->exponent & 0x7fff) {
                        case 0x7fff: