From cb02f2816e26d841fb60e726ceae630d865b44d8 Mon Sep 17 00:00:00 2001 From: Mats O Jansson Date: Wed, 10 Sep 1997 11:52:27 +0000 Subject: Sync with NetBSD 970516. -moj --- sys/arch/vax/mba/hp.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'sys/arch/vax/mba') diff --git a/sys/arch/vax/mba/hp.c b/sys/arch/vax/mba/hp.c index 3195f48f71c..96409c37e9c 100644 --- a/sys/arch/vax/mba/hp.c +++ b/sys/arch/vax/mba/hp.c @@ -1,5 +1,5 @@ -/* $OpenBSD: hp.c,v 1.6 1997/08/08 21:46:56 niklas Exp $ */ -/* $NetBSD: hp.c,v 1.12 1996/10/13 03:34:58 christos Exp $ */ +/* $OpenBSD: hp.c,v 1.7 1997/09/10 11:52:26 maja Exp $ */ +/* $NetBSD: hp.c,v 1.14 1997/03/15 16:32:18 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -52,11 +52,13 @@ #include #include #include +#include #include #include #include #include +#include #include #include @@ -164,6 +166,12 @@ hpattach(parent, self, aux) dl, NULL)) != NULL) printf(": %s", msg); printf(": %s, size = %d sectors\n", dl->d_typename, dl->d_secperunit); + /* + * check if this was what we booted from. + */ + if ((B_TYPE(bootdev) == BDEV_HP) && (ma->unit == B_UNIT(bootdev)) && + (ms->sc_physnr == B_ADAPTOR(bootdev))) + booted_from = self; } @@ -493,4 +501,3 @@ hp_getdev(mbanr, unit, uname) } return -1; } - -- cgit v1.2.3