diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 1997-09-10 11:52:27 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 1997-09-10 11:52:27 +0000 |
commit | cb02f2816e26d841fb60e726ceae630d865b44d8 (patch) | |
tree | 4e34a453eab7dc12aba2a7b1ab27361694844ed4 /sys/arch/vax/mba | |
parent | ccaf04f4bb2a93a41db1352978899ff3191f9193 (diff) |
Sync with NetBSD 970516. -moj
Diffstat (limited to 'sys/arch/vax/mba')
-rw-r--r-- | sys/arch/vax/mba/hp.c | 13 |
1 files changed, 10 insertions, 3 deletions
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 <sys/ioccom.h> #include <sys/fcntl.h> #include <sys/syslog.h> +#include <sys/reboot.h> #include <machine/trap.h> #include <machine/pte.h> #include <machine/mtpr.h> #include <machine/cpu.h> +#include <machine/rpb.h> #include <vax/mba/mbavar.h> #include <vax/mba/mbareg.h> @@ -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; } - |