1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

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.
This commit is contained in:
Mike Smith 1999-01-24 00:10:10 +00:00
parent 85abbaa800
commit 5d3d992565
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43113
2 changed files with 4 additions and 2 deletions

View File

@ -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));

View File

@ -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));