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

Next file: linux-2.4.19/include/asm-arm/arch-cl7500/keyboard.h
Previous file: linux-2.4.19/include/asm-arm/arch-anakin/ide.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-arm/arch-anakin/uncompress.h linux-2.4.19/include/asm-arm/arch-anakin/uncompress.h
@@ -14,6 +14,7 @@
 #ifndef __ASM_ARCH_UNCOMPRESS_H
 #define __ASM_ARCH_UNCOMPRESS_H
 
+#include <linux/config.h>
 #include <asm/io.h>
 #include <asm/arch/serial_reg.h>
 
@@ -24,7 +25,9 @@
 static inline void
 putc(int c)
 {
-	while (!(__raw_readl(IO_START + UART0 + 0x10) & TXEMPTY));
+	while (!(__raw_readl(IO_START + UART0 + 0x10) & TXEMPTY))
+		barrier();
+
 	__raw_writel(c, IO_START + UART0 + 0x14);
 	__raw_writel(__raw_readl(IO_START + UART0 + 0x18)
 			| SENDREQUEST, IO_START + UART0 + 0x18);

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