memscan: adjust lower limit; saner handling of insane DOS memory sizes
authorH. Peter Anvin <hpa@zytor.com>
Sat, 4 Apr 2009 23:05:32 +0000 (16:05 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 4 Apr 2009 23:06:04 +0000 (16:06 -0700)
commit980e83a4844c69b57496dd408dcbe0906cb30d52
tree0bd577eea7ee7b5704e156a6756ff6a20be90361
parent58b4f012ee355e3fa583b01208d175eb298b56b6
memscan: adjust lower limit; saner handling of insane DOS memory sizes

Adjust the lower limit of DOS memory to 0x510; with the last known
BIOS byte in use at 0x500 (and only then for Print Screen) this makes
sense.

If the DOS memory size is clearly insane, fall back to using the EBDA
address.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/syslinux/memscan.c