patch-2.3.32 linux/include/asm-arm/vga.h

Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-arm/resource.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/include/asm-arm/vga.h linux/include/asm-arm/vga.h
@@ -6,7 +6,7 @@
 
 #define VGA_MAP_MEM(x)	(PCIMEM_BASE + (x))
 
-#define vga_readb(x)	(*(x))
-#define vga_writeb(x,y)	(*(y) = (x))
+#define vga_readb(x)	(*((volatile unsigned char *)x))
+#define vga_writeb(x,y)	(*((volatile unsigned char *)y) = (x))
 
 #endif

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