From 1d521976afba1b8f018ec50a2febc8e672f4533e Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 17 Sep 1997 18:32:50 +0000 Subject: [PATCH] Put name of booted file into a "bootinfo" structure. --- sys/arch/i386/stand/biosboot/devopen.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/stand/biosboot/devopen.c b/sys/arch/i386/stand/biosboot/devopen.c index 1aa604cff04f..6f45962621ca 100644 --- a/sys/arch/i386/stand/biosboot/devopen.c +++ b/sys/arch/i386/stand/biosboot/devopen.c @@ -1,4 +1,4 @@ -/* $NetBSD: devopen.c,v 1.4 1997/07/15 12:45:26 drochner Exp $ */ +/* $NetBSD: devopen.c,v 1.5 1997/09/17 18:32:50 drochner Exp $ */ /* * Copyright (c) 1996, 1997 @@ -38,9 +38,14 @@ #endif #include +#include #include #include +#include + +extern int parsebootfile __P((const char *, char**, char**, unsigned int*, + unsigned int*, const char**)); static struct { char *name; @@ -110,6 +115,8 @@ bios2dev(biosdev, devname, unit) return (0); } +struct btinfo_bootpath bibp; + /* * Open the BIOS disk device */ @@ -132,5 +139,9 @@ devopen(f, fname, file) dp = &devsw[0]; /* must be biosdisk */ f->f_dev = dp; + + strncpy(bibp.bootpath, *file, sizeof(bibp.bootpath)); + BI_ADD(&bibp, BTINFO_BOOTPATH, sizeof(bibp)); + return (biosdiskopen(f, biosdev, partition)); }