Add shutdownhooks().

This commit is contained in:
pk 1996-01-10 23:00:33 +00:00
parent 524cf97f54
commit 94bb8db5ad
1 changed files with 4 additions and 1 deletions

View File

@ -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 * Copyright (c) 1992, 1993
@ -641,11 +641,14 @@ boot(howto)
} }
(void) splhigh(); /* ??? */ (void) splhigh(); /* ??? */
if (howto & RB_HALT) { if (howto & RB_HALT) {
doshutdownhooks();
printf("halted\n\n"); printf("halted\n\n");
romhalt(); romhalt();
} }
if (howto & RB_DUMP) if (howto & RB_DUMP)
dumpsys(); dumpsys();
doshutdownhooks();
printf("rebooting\n\n"); printf("rebooting\n\n");
i = 1; i = 1;
if (howto & RB_SINGLE) if (howto & RB_SINGLE)