mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
some bug fixes
This commit is contained in:
1 parent
5cbce8e5a6
commit
cb6a267f1e
6 files changed
+107
-49
No files matched your search
+13
-4
@@ -186,10 +186,19 @@ get_diskinfo (int drive, struct geometry *geometry)
|
||||
else
|
||||
{
|
||||
/* floppy disk */
|
||||
err = get_diskinfo_floppy (drive,
|
||||
&geometry->cylinders,
|
||||
&geometry->heads,
|
||||
&geometry->sectors);
|
||||
|
||||
/* First, try INT 13 AH=8h call. */
|
||||
err = get_diskinfo_standard (drive,
|
||||
&geometry->cylinders,
|
||||
&geometry->heads,
|
||||
&geometry->sectors);
|
||||
|
||||
/* If fails, then try floppy-specific probe routine. */
|
||||
if (err)
|
||||
err = get_diskinfo_floppy (drive,
|
||||
&geometry->cylinders,
|
||||
&geometry->heads,
|
||||
&geometry->sectors);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
||||
Reference in new issue
Block a user