From 94bb8db5ad32b333c7fce324793c6d6bf4a1e582 Mon Sep 17 00:00:00 2001 From: pk Date: Wed, 10 Jan 1996 23:00:33 +0000 Subject: [PATCH] Add shutdownhooks(). --- sys/arch/sparc/sparc/machdep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 6b1d49d00ab1..173586d5eec5 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.53 1996/01/04 22:22:47 jtc Exp $ */ +/* $NetBSD: machdep.c,v 1.54 1996/01/10 23:00:33 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -641,11 +641,14 @@ boot(howto) } (void) splhigh(); /* ??? */ if (howto & RB_HALT) { + doshutdownhooks(); printf("halted\n\n"); romhalt(); } if (howto & RB_DUMP) dumpsys(); + + doshutdownhooks(); printf("rebooting\n\n"); i = 1; if (howto & RB_SINGLE)