patch-2.4.19 linux-2.4.19/include/asm-sparc64/timex.h

Next file: linux-2.4.19/include/asm-sparc64/unistd.h
Previous file: linux-2.4.19/include/asm-sparc64/system.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-sparc64/timex.h linux-2.4.19/include/asm-sparc64/timex.h
@@ -16,7 +16,7 @@
 typedef unsigned long cycles_t;
 #define get_cycles() \
 ({	cycles_t ret; \
-	__asm__("rd	%%tick, %0" : "=r" (ret)); \
+	__asm__ __volatile__("rd	%%tick, %0" : "=r" (ret)); \
 	ret; \
 })
 

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