Pass the BIOS unit number from which the kernel/loader was obtained in

the bootinfo struct so that it can be reused later.
This commit is contained in:
Mike Smith 1998-10-01 18:22:52 +00:00
parent 31a014da28
commit c2316d3e9a
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
* $Id: boot.c,v 1.70 1998/02/01 05:24:24 yokota Exp $
* $Id: boot.c,v 1.71 1998/09/23 06:50:45 yokota Exp $
*/
@ -317,6 +317,7 @@ loadprog(void)
bootinfo.bi_kernelname = name + ouraddr;
bootinfo.bi_nfs_diskless = NULL;
bootinfo.bi_size = sizeof(bootinfo);
bootinfo.bi_bios_dev = dosdev;
/*
* Load the kernel config file (if any). Its name is given by

View File

@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: bootinfo.h,v 1.9 1998/07/11 04:02:49 bde Exp $
* $Id: bootinfo.h,v 1.10 1998/09/14 18:32:46 msmith Exp $
*/
#ifndef _MACHINE_BOOTINFO_H_
@ -55,7 +55,7 @@ struct bootinfo {
u_int32_t bi_bios_geom[N_BIOS_GEOM];
u_int32_t bi_size;
u_int8_t bi_memsizes_valid;
u_int8_t bi_pad[1];
u_int8_t bi_bios_dev; /* bootdev BIOS unit number */
u_int16_t bi_vesa;
u_int32_t bi_basemem;
u_int32_t bi_extmem;