Fix aux/vga ccru reading
This commit is contained in:
parent
ba6ec01b39
commit
40319a2b96
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue