VESA: work around bug in the Bochs VESA BIOS syslinux-3.62-pre10
authorH. Peter Anvin <hpa@zytor.com>
Sun, 17 Feb 2008 03:16:40 +0000 (19:16 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 17 Feb 2008 03:16:40 +0000 (19:16 -0800)
commit72b0648c5c2c53e84210589fa661f3296b4d0a4d
treed5a5415ee222652b5ac3fa8e40c0d56499261810
parentc35dd558caf455e47791b45adc557ad1998cd220
VESA: work around bug in the Bochs VESA BIOS

The Bochs VESA BIOS returns a value other than 1 for the number of
banks in unbanked modes.  Ignore the number of banks if bank_size == 0
(the spec says that for unbanked modes, banks == 1 && bank_size == 0;
for banked modes banks > 1 and bank_size != 0).
com32/lib/sys/vesa/initvesa.c
com32/lib/sys/vesa/vesa.h