patch-2.2.18 linux/include/asm-alpha/core_irongate.h

Next file: linux/include/asm-alpha/delay.h
Previous file: linux/fs/vfat/namei.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-alpha/core_irongate.h linux/include/asm-alpha/core_irongate.h
@@ -505,21 +505,25 @@
 __EXTERN_INLINE void irongate_writeb(unsigned char b, unsigned long addr)
 {
 	__kernel_stb(b, *(vucp)(XADDR + IRONGATE_MEM));
+	mb();
 }
 
 __EXTERN_INLINE void irongate_writew(unsigned short b, unsigned long addr)
 {
 	__kernel_stw(b, *(vusp)(XADDR + IRONGATE_MEM));
+	mb();
 }
 
 __EXTERN_INLINE void irongate_writel(unsigned int b, unsigned long addr)
 {
 	*(vuip)(XADDR + IRONGATE_MEM) = b;
+	mb();
 }
 
 __EXTERN_INLINE void irongate_writeq(unsigned long b, unsigned long addr)
 {
 	*(vulp)(XADDR + IRONGATE_MEM) = b;
+	mb();
 }
 
 /* Find the DENSE memory area for a given bus address.	*/

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