Small fix for 2.4.0-test5, asm-alpha/fpu.h (cix extension)

From: Claus-Justus Heine (heine@instmath.RWTH-Aachen.DE)
Date: Tue Aug 01 2000 - 10:15:53 EST


the "__asm__" in wrfpcr() is missing a "__volatile__" when
__alpha_cix__ is defined. Otherwise gcc-2.95.2 optimizes the wrfpcr()
away (in arch/alpha/kernel/osf_sys.c, have looked at the asm output of

Best Regards


--- linux-2.4.0-test5/include/asm-alpha/fpu.h.old Tue Aug 1 17:10:49 2000
+++ linux-2.4.0-test5/include/asm-alpha/fpu.h Tue Aug 1 17:11:09 2000
@@ -153,7 +153,7 @@
         unsigned long tmp;
 #if defined(__alpha_cix__) || defined(__alpha_fix__)
- __asm__ ("ftoit $f0,%0\n\t"
+ __asm__ __volatile__ ("ftoit $f0,%0\n\t"
                  "itoft %1,$f0\n\t"
                  "mt_fpcr $f0\n\t"
                  "itoft %0,$f0"

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:06 EST