summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/stand/libsa/biosdev.c6
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) {