From b85ad36084983a115c86cbe180c40bc3b96e03f2 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sun, 22 Aug 1999 18:50:43 +0000 Subject: [PATCH] Catch an at_shutdown I didn't think of in the last batch. Note to self: port to AS2100 so as to have a test system. Submitted by: jkh --- sys/alpha/alpha/machdep.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index f1923c0c2bac..e2034c259c68 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: machdep.c,v 1.48 1999/07/08 06:05:38 mckusick Exp $ + * $Id: machdep.c,v 1.49 1999/08/19 00:16:51 peter Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -95,6 +95,7 @@ #include #include +#include #include #include #include @@ -247,7 +248,7 @@ static vm_offset_t pager_sva, pager_eva; * unconditionally drop back to the SRM console. */ static void -alpha_srm_shutdown(int howto, void *junk) +alpha_srm_shutdown(void *junk, int howto) { if (howto & RB_HALT) alpha_pal_halt(); @@ -433,8 +434,8 @@ again: */ bufinit(); vm_pager_bufferinit(); - at_shutdown_pri(alpha_srm_shutdown, 0, SHUTDOWN_FINAL, - SHUTDOWN_PRI_LAST); + EVENTHANDLER_REGISTER(shutdown_final, alpha_srm_shutdown, 0 + SHUTDOWN_PRI_LAST); } int