]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: bc_add can not use any other probes than ah=0x4b
authorToomas Soome <tsoome@FreeBSD.org>
Mon, 3 Feb 2020 11:33:33 +0000 (11:33 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Mon, 3 Feb 2020 11:33:33 +0000 (11:33 +0000)
commitb0af1e20e6728337b668a9a54047a2162603444e
treef8726d827d45af1261eb572a2e8a1a7408445aaf
parentd9e9979c02dfd0f58156a5013a76733fbec0e880
loader: bc_add can not use any other probes than ah=0x4b

CD boot is broken for some systems since bioscd and biosdisk merge. The issue is that we can not use anything else than int 13 ah=0x4b to query cd information.

The patch does restore the same probe as was originally used in bioscd.c. Additionally extra buffer padding is used to avoid memory corruption caused by some systems.

PR: 234031
Reported by: ultramage and others
MFC after: 1 day
stand/i386/libi386/biosdisk.c