patch-2.0.31 linux/include/asm-i386/delay.h

Next file: linux/include/asm-i386/fcntl.h
Previous file: linux/include/asm-alpha/socket.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.30/linux/include/asm-i386/delay.h linux/include/asm-i386/delay.h
@@ -6,15 +6,19 @@
  *
  * Delay routines, using a pre-computed "loops_per_second" value.
  */
- 
+
+#include <linux/linkage.h>
+
 #ifdef __SMP__
 #include <asm/smp.h>
 #endif 
 
+extern void __do_delay(void);	/* Special register call calling convention */
+
 extern __inline__ void __delay(int loops)
 {
 	__asm__ __volatile__(
-		".align 2,0x90\n1:\tdecl %0\n\tjns 1b"
+		"call " SYMBOL_NAME_STR(__do_delay)
 		:/* no outputs */
 		:"a" (loops)
 		:"ax");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov