eltorito: Scan upwards instead of downwards
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Fri, 11 Jun 2010 04:15:19 +0000 (04:15 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 17 Jun 2010 18:44:37 +0000 (11:44 -0700)
commitaa1050f66db73be1f61eea0c2df8169430d32d8e
treecb97ed92bcc58fb004590ab81fcdc6f3577d0e27
parentab4a10a3b558f835486efc5dd9e4eeb47a863eb7
eltorito: Scan upwards instead of downwards

A developer for GRUB4DOS called tinybit has reported that some
BIOSes crash when the DOS ElTorito.Sys driver scans drive number
0xFF.  According to the El Torito specification, drive 0x7F
means "terminate all," so a plausible explanation suggested
by H. Peter Anvin is that the drive 0xFF is a shadow of drive
0x7F, thus contributing to a failure on these BIOSes.

Now we scan from 0x80 through 0xFF, instead.

[ hpa: dropped checkin of eltorito.sys ]

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
dosutil/eltorito.asm