diff options
author | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2008-02-21 08:37:42 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.virtuousgeek.org> | 2008-02-21 08:42:22 -0800 |
commit | 122e9a266b04b9f88a4294aadfa6fb5f9a6faff5 (patch) | |
tree | b0b8ad7ec0ec06d3af3acdd0f689e1b8254d26d4 | |
parent | 83be0e293aee63cd181ace8e36a0ee78e3c5a8e1 (diff) | |
download | xorg-driver-xf86-video-intel-122e9a266b04b9f88a4294aadfa6fb5f9a6faff5.tar.gz |
Remove side effects from VGA debug code
The VGA register dumping code was leaving ARX in data mode rather than index
mode, which could cause problems for later software accessing AR* registers.
Fix it to make sure it's in index mode when we're done.
Fixes #14434.
-rw-r--r-- | src/i830_debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i830_debug.c b/src/i830_debug.c index 196fd23a..9cf7ba52 100644 --- a/src/i830_debug.c +++ b/src/i830_debug.c @@ -601,6 +601,7 @@ static void i830DumpAR(ScrnInfoPtr pScrn) } INREG8(st01); OUTREG8(0x3c0, orig_arx); + INREG8(st01); /* switch back to index mode */ } void i830DumpRegs (ScrnInfoPtr pScrn) |