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

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

diff -urN linux-2.4.18/include/asm-arm/arch-ebsa285/uncompress.h linux-2.4.19/include/asm-arm/arch-ebsa285/uncompress.h
@@ -18,10 +18,12 @@
 static __inline__ void putc(char c)
 {
 	if (machine_is_netwinder()) {
-		while ((SER0_BASE[5] & 0x60) != 0x60);
+		while ((SER0_BASE[5] & 0x60) != 0x60)
+			barrier();
 		SER0_BASE[0] = c;
 	} else {
-		while (DC21285_BASE[6] & 8);
+		while (DC21285_BASE[6] & 8)
+			barrier();
 		DC21285_BASE[0] = c;
 	}
 }

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