From 4bd62a07ce3b2e617c67b317cf65205aac098334 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 15 Dec 1995 15:40:31 +0000 Subject: [PATCH] call doshutdownhooks() earlier --- sys/arch/i386/i386/machdep.c | 5 +++-- 1 file 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(;;) ; -- 2.20.1