summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 15:40:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-15 15:40:32 +0000
commit21874050aa6d63197e357914a0b2472000aacecb (patch)
tree3a2991d959b4838973fb1cad550f6a15f2ffc21c
parentac2cb94ddfd4ff761154f9317bd25b99106df8db (diff)
call doshutdownhooks() earlier
-rw-r--r--sys/arch/i386/i386/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 674f069b821..d1610181cc3 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.180.2.1 1995/10/15 22:11:38 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.182 1995/12/14 18:31:20 ghudson Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -694,6 +694,7 @@ boot(howto)
}
splhigh();
if (howto & RB_HALT) {
+ doshutdownhooks();
printf("\n");
printf("The operating system has halted.\n");
printf("Please press any key to reboot.\n\n");
@@ -704,8 +705,8 @@ boot(howto)
dumppcb.pcb_cr3 = rcr3();
dumpsys();
}
+ doshutdownhooks();
}
- doshutdownhooks();
printf("rebooting...\n");
cpu_reset();
for(;;) ;