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
- Lines: 22
- Date:
Tue Sep 16 14:44:38 1997
- Orig file:
v2.0.30/linux/include/asm-i386/delay.h
- Orig date:
Tue Oct 8 09:43:30 1996
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