patch-2.4.11-dontuse linux/include/asm-cris/delay.h

Next file: linux/include/asm-cris/io.h
Previous file: linux/include/asm-cris/current.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/include/asm-cris/delay.h linux/include/asm-cris/delay.h
@@ -1,5 +1,3 @@
-/* $Id: delay.h,v 1.5 2001/06/28 04:59:25 hp Exp $ */
-
 #ifndef _CRIS_DELAY_H
 #define _CRIS_DELAY_H
 
@@ -21,12 +19,12 @@
 extern __inline__ void __delay(int loops)
 {
 	__asm__ __volatile__ (
-			      "move.d %0,r9\n\t"
+			      "move.d %0,$r9\n\t"
 			      "beq 2f\n\t"
-			      "subq 1,r9\n\t"
+			      "subq 1,$r9\n\t"
 			      "1:\n\t"
 			      "bne 1b\n\t"
-			      "subq 1,r9\n"
+			      "subq 1,$r9\n"
 			      "2:"
 			      : : "g" (loops) : "r9");
 }

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