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
-  Lines: 15
-  Date:
Fri Aug  2 17:39:45 2002
-  Orig file: 
linux-2.4.18/include/asm-arm/arch-tbox/uncompress.h
-  Orig date: 
Mon Sep 18 15:15:23 2000
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)