diff options
author | 1997-10-28 23:33:49 +0000 | |
---|---|---|
committer | 1997-10-28 23:33:49 +0000 | |
commit | ac984cf26e02e5c59de50e322e9b2142daede5ec (patch) | |
tree | 928c2cc8e8091f0c8fe30ff699d52cafea3140c5 | |
parent | attempt to number the bsd_dev units of each drive uniquely for scsi and ide. (diff) | |
download | wireguard-openbsd-ac984cf26e02e5c59de50e322e9b2142daede5ec.tar.xz wireguard-openbsd-ac984cf26e02e5c59de50e322e9b2142daede5ec.zip |
do not replace unit number in bootdev. please talk to me about this.
this makes it so that when booting sd0 on a wd0/sd0/sd1 system the kernel
doesn't get told we are booting from sd1 (ie. scsi, but it is hd1..).
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 4b0ab337154..25c335a870b 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.45 1997/10/26 22:33:00 mickey Exp $ */ +/* $OpenBSD: biosdev.c,v 1.46 1997/10/28 23:33:49 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -399,8 +399,10 @@ biosopen(struct open_file *f, ...) return ENXIO; bootdev = bd->bios_info->bsd_dev; - bd->bsddev = bootdev = MAKEBOOTDEV(B_TYPE(bootdev), B_ADAPTOR(bootdev), + bd->bsddev = MAKEBOOTDEV(B_TYPE(bootdev), B_ADAPTOR(bootdev), B_CONTROLLER(bootdev), unit, part); + bootdev = MAKEBOOTDEV(B_TYPE(bootdev), B_ADAPTOR(bootdev), + B_CONTROLLER(bootdev), B_UNIT(bootdev), part); #ifdef BIOS_DEBUG if (debug) { |