summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-01-24 00:10:10 +0000
committermsmith <msmith@FreeBSD.org>1999-01-24 00:10:10 +0000
commit13b06fbe36e060830e105ff564d453b0f976cc2a (patch)
treec76646c6fc354e173e3b895fb58f9605a5c9ed66 /sys
parent19d9007c62bc46ecf12ececa5a52e85b38c99781 (diff)
downloadFreeBSD-src-13b06fbe36e060830e105ff564d453b0f976cc2a.zip
FreeBSD-src-13b06fbe36e060830e105ff564d453b0f976cc2a.tar.gz
Fill in the bi_bios_dev field in the bootinfo struct; the loader doesn't
guess this value well in anything other than the simplest of situations.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/i386/boot2/boot2.c3
-rw-r--r--sys/boot/i386/gptboot/gptboot.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c
index fa6058b..ddd0316 100644
--- a/sys/boot/i386/boot2/boot2.c
+++ b/sys/boot/i386/boot2/boot2.c
@@ -14,7 +14,7 @@
*/
/*
- * $Id: boot2.c,v 1.17 1999/01/10 13:29:52 peter Exp $
+ * $Id: boot2.c,v 1.18 1999/01/11 11:36:03 rnordier Exp $
*/
#include <sys/param.h>
@@ -283,6 +283,7 @@ load(const char *fname)
}
bootinfo.bi_esymtab = VTOP(p);
bootinfo.bi_kernelname = VTOP(fname);
+ bootinfo.bi_bios_dev = dsk.drive;
__exec((caddr_t)addr, RB_BOOTINFO | (opts & RBX_MASK),
MAKEBOOTDEV(dsk.type, 0, dsk.slice, dsk.unit, dsk.part),
0, 0, 0, VTOP(&bootinfo));
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index fa6058b..ddd0316 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -14,7 +14,7 @@
*/
/*
- * $Id: boot2.c,v 1.17 1999/01/10 13:29:52 peter Exp $
+ * $Id: boot2.c,v 1.18 1999/01/11 11:36:03 rnordier Exp $
*/
#include <sys/param.h>
@@ -283,6 +283,7 @@ load(const char *fname)
}
bootinfo.bi_esymtab = VTOP(p);
bootinfo.bi_kernelname = VTOP(fname);
+ bootinfo.bi_bios_dev = dsk.drive;
__exec((caddr_t)addr, RB_BOOTINFO | (opts & RBX_MASK),
MAKEBOOTDEV(dsk.type, 0, dsk.slice, dsk.unit, dsk.part),
0, 0, 0, VTOP(&bootinfo));
OpenPOWER on IntegriCloud