patch-2.1.72 linux/drivers/char/vga.c

Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.71/linux/drivers/char/vga.c linux/drivers/char/vga.c
@@ -162,8 +162,7 @@
 	 *	Find out if there is a graphics card present.
 	 *	Are there smarter methods around?
 	 */
-	p = (unsigned short *)(((ORIG_VIDEO_MODE == 7) ? 0xb0000 : 0xb8000) +
-			       + VGA_OFFSET);
+	p = (unsigned short *) video_mem_base;
 	saved = scr_readw(p);
 	scr_writew(0xAA55, p);
 	if (scr_readw(p) != 0xAA55) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov