diff options
author | taruti <taruti@violetti.org> | 2011-06-01 07:46:41 +0000 |
---|---|---|
committer | taruti <taruti@violetti.org> | 2011-06-01 07:46:41 +0000 |
commit | 40319a2b963a3b1988910b3a62a0606bf16b6bd0 (patch) | |
tree | 22b1375b2aad6251112c11420ee8ddd924b0c30f /sys/src/cmd/aux/vga/pci.c | |
parent | ba6ec01b39dc4533e452373f26091fa6f089c272 (diff) |
Fix aux/vga ccru reading
Diffstat (limited to 'sys/src/cmd/aux/vga/pci.c')
-rw-r--r-- | sys/src/cmd/aux/vga/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c index 230739217..8bd730e63 100644 --- a/sys/src/cmd/aux/vga/pci.c +++ b/sys/src/cmd/aux/vga/pci.c @@ -55,7 +55,7 @@ pcicfginit(void) 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); |