patch-2.4.4 linux/include/asm-sparc64/delay.h

Next file: linux/include/asm-sparc64/elf.h
Previous file: linux/include/asm-sparc64/chmctrl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-sparc64/delay.h linux/include/asm-sparc64/delay.h
@@ -1,4 +1,4 @@
-/* $Id: delay.h,v 1.11 2001/01/02 08:15:32 davem Exp $
+/* $Id: delay.h,v 1.12 2001/04/24 01:09:12 davem Exp $
  * delay.h: Linux delay routines on the V9.
  *
  * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu).
@@ -16,14 +16,14 @@
 
 extern __inline__ void __delay(unsigned long loops)
 {
-	__asm__ __volatile__("
-	b,pt	%%xcc, 1f
-	 cmp	%0, 0
-	.align	32
-1:
-	bne,pt	%%xcc, 1b
-	 subcc	%0, 1, %0
-"	: "=&r" (loops)
+	__asm__ __volatile__(
+"	b,pt	%%xcc, 1f\n"
+"	 cmp	%0, 0\n"
+"	.align	32\n"
+"1:\n"
+"	bne,pt	%%xcc, 1b\n"
+"	 subcc	%0, 1, %0\n"
+	: "=&r" (loops)
 	: "0" (loops)
 	: "cc");
 }
@@ -32,10 +32,10 @@
 {
 	usecs *= 0x00000000000010c6UL;		/* 2**32 / 1000000 */
 
-	__asm__ __volatile__("
-	mulx	%1, %2, %0
-	srlx	%0, 32, %0
-"	: "=r" (usecs)
+	__asm__ __volatile__(
+"	mulx	%1, %2, %0\n"
+"	srlx	%0, 32, %0\n"
+	: "=r" (usecs)
 	: "r" (usecs), "r" (lps));
 
 	__delay(usecs * HZ);

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