patch-2.3.19 linux/drivers/video/vgacon.c

Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/drivers/video/p9100fb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/drivers/video/vgacon.c linux/drivers/video/vgacon.c
@@ -166,7 +166,7 @@
 {
 	const char *display_desc = NULL;
 	u16 saved1, saved2;
-	u16 *p;
+	volatile u16 *p;
 
 	if (ORIG_VIDEO_ISVGA == VIDEO_TYPE_VLFB) {
 	no_vga:
@@ -285,7 +285,7 @@
 	 *	Find out if there is a graphics card present.
 	 *	Are there smarter methods around?
 	 */
-	p = (u16 *)vga_vram_base;
+	p = (volatile u16 *)vga_vram_base;
 	saved1 = scr_readw(p);
 	saved2 = scr_readw(p + 1);
 	scr_writew(0xAA55, p);

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