patch-2.4.22 linux-2.4.22/include/asm-sh/system.h

Next file: linux-2.4.22/include/asm-sh/types.h
Previous file: linux-2.4.22/include/asm-sh/segment.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-sh/system.h linux-2.4.22/include/asm-sh/system.h
@@ -130,7 +130,9 @@
 }
 
 #define __save_flags(x) \
-	__asm__("stc sr, %0; and #0xf0, %0" : "=&z" (x) :/**/: "memory" )
+	__asm__ __volatile__("stc sr, %0\n\t" \
+			     "and #0xf0, %0"  \
+			     : "=&z" (x) :/**/: "memory" )
 
 static __inline__ unsigned long __save_and_cli(void)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)