summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc/explora
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2021-03-30 01:33:50 +0000
committerrin <rin@NetBSD.org>2021-03-30 01:33:50 +0000
commitef377d64293f64273bad03665e26b9d298df17fe (patch)
treedb84dda24161fc48f94d280dbe4fa2cfb2397c4c /sys/arch/evbppc/explora
parent4a922844f4ccb003b1314bff78d6d8127b09090a (diff)
Centralize cpu_reboot().
Diffstat (limited to 'sys/arch/evbppc/explora')
-rw-r--r--sys/arch/evbppc/explora/machdep.c48
1 files changed, 2 insertions, 46 deletions
diff --git a/sys/arch/evbppc/explora/machdep.c b/sys/arch/evbppc/explora/machdep.c
index ed4313384ef..1ab508a6350 100644
--- a/sys/arch/evbppc/explora/machdep.c
+++ b/sys/arch/evbppc/explora/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.46 2021/03/07 09:43:56 rin Exp $ */
+/* $NetBSD: machdep.c,v 1.47 2021/03/30 01:33:50 rin Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.46 2021/03/07 09:43:56 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.47 2021/03/30 01:33:50 rin Exp $");
#include "opt_explora.h"
#include "opt_modular.h"
@@ -178,47 +178,3 @@ cpu_startup(void)
*/
fake_mapiodev = 0;
}
-
-void
-cpu_reboot(int howto, char *what)
-{
- static int syncing = 0;
-
- boothowto = howto;
- if (!cold && !(howto & RB_NOSYNC) && !syncing) {
- syncing = 1;
- vfs_shutdown();
- resettodr();
- }
-
- splhigh();
-
- if (!cold && (howto & RB_DUMP))
- /*XXX dumpsys()*/;
-
- doshutdownhooks();
-
- pmf_system_shutdown(boothowto);
-
- if (howto & RB_HALT) {
- printf("halted\n\n");
-
- while (1)
- ;
- }
-
- printf("rebooting\n\n");
-
- /* flush cache for msgbuf */
- __syncicache((void *)msgbuf_paddr, round_page(MSGBUFSIZE));
-
- ppc4xx_reset();
-
-#ifdef DDB
- while (1)
- Debugger();
-#else
- while (1)
- ;
-#endif
-}