diff options
author | taruti <taruti@violetti.org> | 2011-06-02 21:27:41 +0000 |
---|---|---|
committer | taruti <taruti@violetti.org> | 2011-06-02 21:27:41 +0000 |
commit | 8e388a703782a1d7f25efb2890371bcb4fe49fbb (patch) | |
tree | 0c9a3c83d88ff2ab8de343f6d1debb57b5d31480 /sys/src/cmd/aux/vga/pci.c | |
parent | 64f14cc6a4a5d0200f56d88c843bb439dcc473d9 (diff) |
aux/vga ccru/ccrb parsing
Diffstat (limited to 'sys/src/cmd/aux/vga/pci.c')
-rw-r--r-- | sys/src/cmd/aux/vga/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/vga/pci.c b/sys/src/cmd/aux/vga/pci.c index 8bd730e63..db531b265 100644 --- a/sys/src/cmd/aux/vga/pci.c +++ b/sys/src/cmd/aux/vga/pci.c @@ -55,7 +55,8 @@ pcicfginit(void) buf[j] = 0; close(fd); - p->ccru = strtol(buf + 0, nil, 16) << 8; + p->ccrb = strtol(buf, nil, 16); + p->ccru = strtol(buf + 3, nil, 16); p->vid = strtol(buf + 9, &s, 16); p->did = strtol(s + 1, &s, 16); p->intl = strtol(s + 1, &s, 10); |