git: 9front

Download patch

ref: 49890fe3e35c8f928a532b60d5a5dd8da0f26705
parent: 3c4e1c41471c56856044cf856390983bbd3ed04f
author: taruti <taruti@violetti.org>
date: Tue May 31 03:20:21 EDT 2011

Fix nvidia 6200 0x161

--- a/sys/src/cmd/aux/vga/nvidia.c
+++ b/sys/src/cmd/aux/vga/nvidia.c
@@ -222,6 +222,9 @@
 	 * Unlock
 	 */
 	vgaxo(Crtx, 0x1F, 0x57);
+	outportb(Crtx, 0x11);
+	outportb(Crtx+1, inportb(Crtx+1) & ~0x80);
+	trace("nvidia: Unlocked\n");
 
 	if (nv->pextdev[0] & 0x40)
 		nv->crystalfreq = RefFreq;
--