File xf86-video-mga-commit-19c44d5.diff of Package xorg-x11-driver-video
commit 19c44d537e982fcf0fe2dc9f3273ac6166302510
Author: Yannick Heneault <yheneaul@matrox.com>
Date: Tue Apr 21 10:00:24 2009 -0400
Fixed bad vga access in memory count routine.
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 7ed5c27..e929311 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1346,7 +1346,7 @@ MGACountRam(ScrnInfoPtr pScrn)
base[Offset+0x100] = 0x55;
base[Offset+0x101] = 0xaa;
- OUTREG(MGAREG_CRTC_INDEX, 0);
+ OUTREG8(MGAREG_CRTC_INDEX, 0);
usleep(8);
TestMemoryLocA = base[Offset];