summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/libi386/bootinfo.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-11-13 23:40:02 +0000
committermsmith <msmith@FreeBSD.org>1998-11-13 23:40:02 +0000
commit20e409b11b3808e461ab3f842735190ac6007522 (patch)
tree58b52605b6497bf5e372bb2743757390bf4f0a43 /sys/boot/i386/libi386/bootinfo.c
parent5a28cf02837de734aa430222b15124cfab8db5b7 (diff)
downloadFreeBSD-src-20e409b11b3808e461ab3f842735190ac6007522.zip
FreeBSD-src-20e409b11b3808e461ab3f842735190ac6007522.tar.gz
Add a new variable $num_ide_disks which is used to offset the unit number
for SCSI disks when converting from BIOS unit numbers to da unit numbers. Prompted by Kevin Street <street@iname.com>
Diffstat (limited to 'sys/boot/i386/libi386/bootinfo.c')
-rw-r--r--sys/boot/i386/libi386/bootinfo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/boot/i386/libi386/bootinfo.c b/sys/boot/i386/libi386/bootinfo.c
index 5b479cd..77ba8b7 100644
--- a/sys/boot/i386/libi386/bootinfo.c
+++ b/sys/boot/i386/libi386/bootinfo.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bootinfo.c,v 1.13 1998/10/14 05:07:23 peter Exp $
+ * $Id: bootinfo.c,v 1.14 1998/10/15 17:06:36 peter Exp $
*/
#include <stand.h>
@@ -249,9 +249,7 @@ bi_load(char *args, int *howtop, int *bootdevp, vm_offset_t *bip)
printf("can't determine root device\n");
return(EINVAL);
}
-
- /* Boot from whatever the current device is */
- i386_getdev((void **)(&rootdev), NULL, NULL);
+
switch(rootdev->d_type) {
case DEVT_DISK:
/* pass in the BIOS device number of the current disk */
OpenPOWER on IntegriCloud