[ros-diffs] [fireball] 34549: Dmitry Gorbachev - Fix a problem in VgaIsPresent: Content of the Address Register goes to the Data Register, and vice versa. It also writes content of the Map Select Register (which is number 4) into the Bit Mask Register (number 8). See issue #2125 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Jul 16 18:02:33 CEST 2008


Author: fireball
Date: Wed Jul 16 11:02:32 2008
New Revision: 34549

URL: http://svn.reactos.org/svn/reactos?rev=34549&view=rev
Log:
Dmitry Gorbachev
- Fix a problem in VgaIsPresent: Content of the Address Register goes to the Data Register, and vice versa. It also writes content of the Map Select Register (which is number 4) into the Bit Mask Register (number 8).
See issue #2125 for more details.

Modified:
    trunk/reactos/drivers/base/bootvid/i386/bootvid.c

Modified: trunk/reactos/drivers/base/bootvid/i386/bootvid.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/bootvid/i386/bootvid.c?rev=34549&r1=34548&r2=34549&view=diff
==============================================================================
--- trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/base/bootvid/i386/bootvid.c [iso-8859-1] Wed Jul 16 11:02:32 2008
@@ -301,10 +301,10 @@
     }
 
     /* Write the registers we read earlier */
-    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CF, VgaReg);
+    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CF, VgaReg2);
     WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CE, 8);
-    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CF, VgaReg2);
-    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CE, VgaReg3);
+    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CF, VgaReg3);
+    WRITE_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3CE, VgaReg);
 
     /* Read sequencer address */
     SeqReg = READ_PORT_UCHAR((PUCHAR)VgaRegisterBase + 0x3C4);



More information about the Ros-diffs mailing list