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

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

diff -urN linux-2.4.18/include/asm-arm/arch-tbox/uncompress.h linux-2.4.19/include/asm-arm/arch-tbox/uncompress.h
@@ -18,10 +18,12 @@
   while (*s)
   {
     char c = *(s++);
-    while (!(__raw_readb(UARTBASE + 0x14) & 0x20));
+    while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
+      barrier();
     __raw_writeb(c, UARTBASE);
     if (c == 10) {
-      while (!(__raw_readb(UARTBASE + 0x14) & 0x20));
+      while (!(__raw_readb(UARTBASE + 0x14) & 0x20))
+        barrier();
       __raw_writeb(13, UARTBASE);
     }
   }

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