patch-2.4.19 linux-2.4.19/include/asm-cris/system.h

Next file: linux-2.4.19/include/asm-cris/termios.h
Previous file: linux-2.4.19/include/asm-cris/svinto.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-cris/system.h linux-2.4.19/include/asm-cris/system.h
@@ -62,8 +62,8 @@
 #define save_flags(x) __asm__ __volatile__ ("move $ccr,%0" : "=rm" (x) : : "memory");
 #define restore_flags(x) __asm__ __volatile__ ("move %0,$ccr\n\tbtstq 5,%0\n\tbpl 1f\n\tnop\n\tpush $r0\n\tmoveq 0,$r0\n\tmove.d $r0,[0x90000000]\n\tpop $r0\n1:\n" : : "r" (x) : "memory");
 #else
-#define __cli() __asm__ __volatile__ ( "di");
-#define __sti() __asm__ __volatile__ ( "ei" );
+#define __cli() __asm__ __volatile__ ( "di" : : :"memory");
+#define __sti() __asm__ __volatile__ ( "ei" : : :"memory");
 #define __save_flags(x) __asm__ __volatile__ ("move $ccr,%0" : "=rm" (x) : : "memory");
 #define __restore_flags(x) __asm__ __volatile__ ("move %0,$ccr" : : "rm" (x) : "memory");
 

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