summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2001-06-11 01:33:48 +0000
committermiod <miod@openbsd.org>2001-06-11 01:33:48 +0000
commitb065bba57aa7d846d0294f53989e9f9cc8b483e9 (patch)
tree40234d90d2e8ac0f87e86ed2630760d80656388e
parentUse MI {trunc,round}_page macros. (diff)
downloadwireguard-openbsd-b065bba57aa7d846d0294f53989e9f9cc8b483e9.tar.xz
wireguard-openbsd-b065bba57aa7d846d0294f53989e9f9cc8b483e9.zip
Call doshutdownhooks() during shutdown.
-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);