git: 9front

Download patch

ref: ab96edce91a04c71cd35fa95477adc39ff500670
parent: 49890fe3e35c8f928a532b60d5a5dd8da0f26705
author: taruti <taruti@violetti.org>
date: Wed Jun 1 03:46:41 EDT 2011

Fix aux/vga ccru reading

--- a/sys/src/cmd/aux/vga/pci.c
+++ b/sys/src/cmd/aux/vga/pci.c
@@ -55,7 +55,7 @@
 		buf[j] = 0;
 		close(fd);
 
-		p->ccru = strtol(buf + 3, nil, 16);
+		p->ccru = strtol(buf + 0, nil, 16) << 8;
 		p->vid = strtol(buf + 9, &s, 16);
 		p->did = strtol(s + 1, &s, 16);
 		p->intl = strtol(s + 1, &s, 10);
--