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

Next file: linux-2.4.19/include/asm-arm/arch-l7200/uncompress.h
Previous file: linux-2.4.19/include/asm-arm/arch-integrator/system.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-arm/arch-integrator/uncompress.h linux-2.4.19/include/asm-arm/arch-integrator/uncompress.h
@@ -31,12 +31,14 @@
 static void puts(const char *s)
 {
 	while (*s) {
-		while (AMBA_UART_FR & (1 << 5));
+		while (AMBA_UART_FR & (1 << 5))
+			barrier();
 
 		AMBA_UART_DR = *s;
 
 		if (*s == '\n') {
-			while (AMBA_UART_FR & (1 << 5));
+			while (AMBA_UART_FR & (1 << 5))
+				barrier();
 
 			AMBA_UART_DR = '\r';
 		}

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