patch-2.4.19 linux-2.4.19/include/asm-arm/arch-sa1100/uncompress.h

Next file: linux-2.4.19/include/asm-arm/arch-shark/keyboard.h
Previous file: linux-2.4.19/include/asm-arm/arch-sa1100/time.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-arm/arch-sa1100/uncompress.h linux-2.4.19/include/asm-arm/arch-sa1100/uncompress.h
@@ -33,14 +33,16 @@
 
 	for (; *s; s++) {
 		/* wait for space in the UART's transmiter */
-		while (!(UART(UTSR1) & UTSR1_TNF));
+		while (!(UART(UTSR1) & UTSR1_TNF))
+			barrier();
 
 		/* send the character out. */
 		UART(UTDR) = *s;
 
 		/* if a LF, also do CR... */
 		if (*s == 10) {
-			while (!(UART(UTSR1) & UTSR1_TNF));
+			while (!(UART(UTSR1) & UTSR1_TNF))
+				barrier();
 			UART(UTDR) = 13;
 		}
 	}

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