Fix bios freq table offset Enlarge bios size to capture panel info Reference: /n/sources/patch/applied/mach64xx-fix Date: Sat Oct 16 06:22:12 CES 2004 --- /sys/src/cmd/aux/vga/mach64xx.c Sat Oct 16 06:22:12 2004 +++ /sys/src/cmd/aux/vga/mach64xx.c Sat Oct 16 06:22:11 2004 @@ -1281,7 +1281,7 @@ dumpmach64bios(Mach64xx *mp) { int i, romtable, clocktable, freqtable, lcdtable, lcdpanel; - uchar bios[0x1000]; + uchar bios[0x10000]; memmove(bios, readbios(sizeof bios, 0xC0000), sizeof bios); @@ -1308,7 +1308,7 @@ return; } - freqtable = *(ushort*)(bios-2); + freqtable = *(ushort*)(bios+clocktable-2); if(freqtable+0x20 > sizeof(bios)) { Bprint(&stdout, "couldn't find ATI frequency table\n"); return;