[syslinux] HDT: Doesn't work with syslinux

Miller, Shao Shao.Miller at yrdsb.edu.on.ca
Mon Mar 30 19:04:07 PDT 2009


Hmm...  If the proposed change below were implemented, what would happen
on the final iteration?

drive == 0xff

then:

drive++;

- Shao Miller

-----Original Message-----
From: syslinux-bounces at zytor.com [mailto:syslinux-bounces at zytor.com] On
Behalf Of H. Peter Anvin
Sent: Monday, March 30, 2009 13:48
To: For discussion of Syslinux and tftp-hpa
Subject: Re: [syslinux] HDT: Doesn't work with syslinux

Erwan Velu wrote:
>>
>> Shouldn't you code also try to detect disk 0xff?
>> Change:
>>    for (int drive = 0x80; drive < 0xff; drive++) {
>> To:
>>    for (int drive = 0x80; drive <= 0xff; drive++) {
>>
>>   
> No because the last valid device is 0xfe.
> 

I think using 0xff as a drive is legal, just a bad idea.

	-hpa

_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.




More information about the Syslinux mailing list