Page MenuHomeFreeBSD

loader: issue edd probe before legacy ah=08 and detect no media
ClosedPublic

Authored by tsoome on Oct 23 2018, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 7:47 PM
Unknown Object (File)
Feb 10 2024, 11:44 PM
Unknown Object (File)
Jan 11 2024, 10:55 PM
Unknown Object (File)
Dec 23 2023, 1:50 AM
Unknown Object (File)
Nov 28 2023, 6:52 PM
Unknown Object (File)
Nov 22 2023, 11:50 PM
Unknown Object (File)
Nov 22 2023, 2:56 PM
Unknown Object (File)
Nov 22 2023, 2:43 PM
Subscribers
None

Details

Summary

while probing for drives, use int13 extended info before standard one and
provide workaround for case we are not getting needed information in case
of floppy drive.

In case of INT13 errors, there are (at least) 3 error codes appearing in case
of missin media - 20h, 31h and 80h. Flag the no media and do not print an
error.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Test the presence of floppy device before attempting to read information
about it. We can get bogus information about non-existing floppy devices.

imp added inline comments.
stand/i386/libi386/biosdisk.c
820 ↗(On Diff #49822)

Are these error codes documented somewhere?

This revision is now accepted and ready to land.Oct 31 2018, 2:55 PM
tsoome added inline comments.
stand/i386/libi386/biosdisk.c
820 ↗(On Diff #49822)

It is quite wild west there:

http://www.bioscentral.com/misc/biosint13.htm does list 20h and 80h, but in generic form.
http://home.teleport.com/~brainy/interrupts.htm does list 31h

OK. Since there's not a simple place to point people, let's get this in.

stand/i386/libi386/biosdisk.c
820 ↗(On Diff #49822)

fun!

This revision was automatically updated to reflect the committed changes.