From 412f6ae85b40352e71c8055c34f9962b4b3a9e91 Mon Sep 17 00:00:00 2001 From: ross Date: Thu, 15 Oct 1998 01:00:07 +0000 Subject: [PATCH] Grab booted_dev_fd parameter from bootxx. It won't be there for netboot but there should be no harm done. --- sys/arch/alpha/stand/common/boot.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/alpha/stand/common/boot.c b/sys/arch/alpha/stand/common/boot.c index 34be8f38b31d..45d62de47603 100644 --- a/sys/arch/alpha/stand/common/boot.c +++ b/sys/arch/alpha/stand/common/boot.c @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.10 1998/08/14 16:50:04 thorpej Exp $ */ +/* $NetBSD: boot.c,v 1.11 1998/10/15 01:00:07 ross Exp $ */ /* * Copyright (c) 1992, 1993 @@ -52,6 +52,7 @@ #include #include "common.h" +#include "stand/boot/disk.h" int loadfile __P((char *, u_int64_t *)); @@ -77,7 +78,8 @@ char *kernelnames[] = { }; void -main() +main(fd) + int fd; { char *name, **namep; u_int64_t entry; @@ -86,12 +88,15 @@ main() /* Init prom callback vector. */ init_prom_calls(); + /* print a banner */ printf("\n"); printf("%s, Revision %s\n", bootprog_name, bootprog_rev); printf("(%s, %s)\n", bootprog_maker, bootprog_date); printf("\n"); + booted_dev_fd = fd; + /* switch to OSF pal code. */ OSFpal();