summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-06-11 01:33:49 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-06-11 01:33:49 +0000
commit6f9474db9eaf4f2af42aa02da36cd9c6a211a0c9 (patch)
tree79258efabc4b2b2e5d802b0e17694e1593f41805 /sys/arch/vax
parent4aa5bb8deddfcb57dead802ea9404168cb57ef1a (diff)
Call doshutdownhooks() during shutdown.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index 5ccd3c82fb3..6786e79c544 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.32 2001/05/17 18:41:50 provos Exp $ */
+/* $OpenBSD: machdep.c,v 1.33 2001/06/11 01:33:48 miod Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
@@ -538,8 +538,13 @@ boot(howto)
");
#endif
+ /* If rebooting and a dump is requested, do it. */
if (showto & RB_DUMP)
dumpsys();
+
+ /* Run any shutdown hooks. */
+ doshutdownhooks();
+
if (dep_call->cpu_reboot)
(*dep_call->cpu_reboot)(showto);