Don\'t use get_diskinfo_floppy.

This commit is contained in:
okuji committed 2001-10-13 12:28:37 +00:00
1 parent 61928d1323
commit 3785f597a0
4 files changed
+19 -2

No files matched your search

+4 -2
View File
@@ -1220,7 +1220,8 @@ ENTRY(get_diskinfo_standard)
ret
#if 0
/*
* int get_diskinfo_floppy (int drive, unsigned long *cylinders,
* unsigned long *heads, unsigned long *sectors)
@@ -1304,7 +1305,8 @@ probe_values:
popl %ebp
ret
#endif
/* Source files are splitted, as they have different copyrights. */
#ifndef STAGE1_5
+5
View File
@@ -33,10 +33,12 @@ extern int get_diskinfo_standard (int drive,
unsigned long *cylinders,
unsigned long *heads,
unsigned long *sectors);
#if 0
extern int get_diskinfo_floppy (int drive,
unsigned long *cylinders,
unsigned long *heads,
unsigned long *sectors);
#endif
/* Read/write NSEC sectors starting from SECTOR in DRIVE disk with GEOMETRY
@@ -215,12 +217,15 @@ get_diskinfo (int drive, struct geometry *geometry)
&geometry->heads,
&geometry->sectors);
#if 0
/* If fails, then try floppy-specific probe routine. */
if (err)
err = get_diskinfo_floppy (drive,
&geometry->cylinders,
&geometry->heads,
&geometry->sectors);
#endif
if (err)
return err;