It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9) expect to be called with interrupts disabled, but shutdown hooks registered with pmf_device_register1(9) expect to be called with interrupts enabled. So I have made two changes: 1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead, change every call to doshutdownhooks() to a call to doshutdownhooks() followed by a call to pmf_system_shutdown(). No functional change is intended by this change. 2 Make i386 re-enable interrupts briefly while it calls pmf_system_shutdown(). I leave it to others either to fix the other ports, or to factor out some MI shutdown code, as joerg@ suggests, and fix that. Note that a functional change *is* intended by this change. I hope that this patch will stop us from flip-flopping between calling doshutdownhooks() and pmf_system_shutdown() sometimes with and sometimes without interrupts enabled.
This commit is contained in:
parent
283b08193e
commit
94d985722a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.23 2008/07/02 17:28:54 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.24 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 Ben Harris
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/07/02 17:28:54 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include <sys/buf.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -42,6 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/07/02 17:28:54 ad Exp $");
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/cpu.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <dev/i2c/i2cvar.h>
|
||||
#include <dev/i2c/pcf8583var.h>
|
||||
@ -107,6 +108,8 @@ cpu_reboot(howto, b)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
haltsys:
|
||||
if (howto & RB_HALT) {
|
||||
printf("system halted\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpc_machdep.c,v 1.71 2008/04/27 18:58:43 matt Exp $ */
|
||||
/* $NetBSD: rpc_machdep.c,v 1.72 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
||||
@ -54,7 +54,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.71 2008/04/27 18:58:43 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rpc_machdep.c,v 1.72 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -251,6 +251,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("Halted while still in the ICE age.\n");
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
@ -321,6 +322,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: eb7500atx_machdep.c,v 1.9 2008/01/19 13:11:10 chris Exp $ */
|
||||
/* $NetBSD: eb7500atx_machdep.c,v 1.10 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000-2002 Reinoud Zandijk.
|
||||
@ -54,7 +54,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: eb7500atx_machdep.c,v 1.9 2008/01/19 13:11:10 chris Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: eb7500atx_machdep.c,v 1.10 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -253,6 +253,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("Halted while still in the ICE age.\n");
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
@ -294,6 +295,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.38 2008/07/02 17:28:54 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.39 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -106,7 +106,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2008/07/02 17:28:54 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.39 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_algor_p4032.h"
|
||||
#include "opt_algor_p5064.h"
|
||||
@ -129,6 +129,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2008/07/02 17:28:54 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/if_ether.h>
|
||||
@ -708,6 +709,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (boothowto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.307 2008/10/15 06:51:17 wrstuden Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.308 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -68,7 +68,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.307 2008/10/15 06:51:17 wrstuden Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.308 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -1030,6 +1030,8 @@ haltsys:
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#ifdef BOOTKEY
|
||||
printf("hit any key to %s...\n", howto & RB_HALT ? "halt" : "reboot");
|
||||
cnpollc(1); /* for proper keyboard command handling */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.102 2008/10/21 15:46:32 cegger Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.103 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
|
||||
@ -112,7 +112,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.102 2008/10/21 15:46:32 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.103 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
/* #define XENDEBUG_LOW */
|
||||
|
||||
@ -156,6 +156,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.102 2008/10/21 15:46:32 cegger Exp $")
|
||||
#include <sys/savar.h>
|
||||
#include <sys/syscallargs.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#ifdef KGDB
|
||||
#include <sys/kgdb.h>
|
||||
@ -691,6 +692,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
#ifndef XEN
|
||||
#if NACPI > 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.112 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.113 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
|
||||
|
||||
/*
|
||||
@ -78,7 +78,7 @@
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.112 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.113 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "fs_mfs.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -660,6 +660,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.150 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.151 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.150 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -427,6 +427,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
splhigh(); /* extreme priority */
|
||||
if(howto & RB_HALT) {
|
||||
printf("halted\n\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.94 2008/06/07 02:48:00 kiyohara Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.95 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.94 2008/06/07 02:48:00 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.95 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -331,12 +331,14 @@ cpu_reboot(int howto, char *what)
|
||||
splhigh();
|
||||
if (howto & RB_HALT) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("halted\n\n");
|
||||
|
||||
}
|
||||
if (!cold && (howto & RB_DUMP))
|
||||
oea_dumpsys();
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("rebooting\n\n");
|
||||
if (what && *what) {
|
||||
if (strlen(what) > sizeof str - 5)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cats_machdep.c,v 1.60 2008/04/27 18:58:45 matt Exp $ */
|
||||
/* $NetBSD: cats_machdep.c,v 1.61 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997,1998 Mark Brinicombe.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.60 2008/04/27 18:58:45 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cats_machdep.c,v 1.61 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -233,6 +233,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -263,6 +264,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.42 2008/09/14 15:03:17 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.43 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.42 2008/09/14 15:03:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_bufcache.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -437,6 +437,8 @@ cpu_reboot(howto, bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.98 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.99 2008/11/11 06:46:40 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Izumi Tsutsui. All rights reserved.
|
||||
@ -50,7 +50,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.98 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.99 2008/11/11 06:46:40 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -67,6 +67,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.98 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/cpu.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -397,6 +398,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.36 2008/04/28 20:23:16 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.37 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2002 The NetBSD Foundation, Inc.
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2008/04/28 20:23:16 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -81,6 +81,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2008/04/28 20:23:16 martin Exp $");
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#ifdef KGDB
|
||||
#include <sys/kgdb.h>
|
||||
@ -242,6 +243,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: brh_machdep.c,v 1.28 2008/04/27 18:58:45 matt Exp $ */
|
||||
/* $NetBSD: brh_machdep.c,v 1.29 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.28 2008/04/27 18:58:45 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: brh_machdep.c,v 1.29 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -238,6 +238,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -267,6 +268,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: armadillo9_machdep.c,v 1.11 2008/04/27 18:58:45 matt Exp $ */
|
||||
/* $NetBSD: armadillo9_machdep.c,v 1.12 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -110,7 +110,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.11 2008/04/27 18:58:45 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: armadillo9_machdep.c,v 1.12 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -343,6 +343,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("\r\n");
|
||||
printf("The operating system has halted.\r\n");
|
||||
printf("Please press any key to reboot.\r\n");
|
||||
@ -373,6 +374,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: beagle_machdep.c,v 1.2 2008/10/22 17:29:33 matt Exp $ */
|
||||
/* $NetBSD: beagle_machdep.c,v 1.3 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
||||
@ -125,7 +125,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.2 2008/10/22 17:29:33 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.3 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -294,6 +294,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -328,6 +329,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: g42xxeb_machdep.c,v 1.14 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: g42xxeb_machdep.c,v 1.15 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003, 2004, 2005 Genetec Corporation.
|
||||
@ -290,6 +290,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -321,6 +322,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gemini_machdep.c,v 1.6 2008/11/10 04:30:46 cliff Exp $ */
|
||||
/* $NetBSD: gemini_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/* adapted from:
|
||||
* NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp
|
||||
@ -129,7 +129,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.6 2008/11/10 04:30:46 cliff Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gemini_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -327,6 +327,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -360,6 +361,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gumstix_machdep.c,v 1.9 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: gumstix_machdep.c,v 1.10 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
/*
|
||||
* Copyright (C) 2005, 2006, 2007 WIDE Project and SOUM Corporation.
|
||||
* All rights reserved.
|
||||
@ -304,6 +304,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -332,6 +333,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hdlg_machdep.c,v 1.6 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: hdlg_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.6 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hdlg_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -715,6 +715,8 @@ haltsys:
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: imx31lk_machdep.c,v 1.3 2008/06/30 00:49:31 perry Exp $ */
|
||||
/* $NetBSD: imx31lk_machdep.c,v 1.4 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Startup routines for the ZOOM iMX31 LITEKIT.
|
||||
@ -110,7 +110,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.3 2008/06/30 00:49:31 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: imx31lk_machdep.c,v 1.4 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -280,6 +280,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -311,6 +312,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: integrator_machdep.c,v 1.58 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: integrator_machdep.c,v 1.59 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001,2002 ARM Ltd
|
||||
@ -68,7 +68,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.58 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: integrator_machdep.c,v 1.59 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -268,6 +268,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -298,6 +299,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iq80310_machdep.c,v 1.70 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: iq80310_machdep.c,v 1.71 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.70 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80310_machdep.c,v 1.71 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -238,6 +238,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -268,6 +269,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iq80321_machdep.c,v 1.39 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: iq80321_machdep.c,v 1.40 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80321_machdep.c,v 1.39 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iq80321_machdep.c,v 1.40 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -264,6 +264,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -293,6 +294,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ixdp425_machdep.c,v 1.17 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: ixdp425_machdep.c,v 1.18 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2003
|
||||
* Ichiro FUKUHARA <ichiro@ichiro.org>.
|
||||
@ -70,7 +70,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixdp425_machdep.c,v 1.17 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixdp425_machdep.c,v 1.18 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -256,6 +256,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -285,6 +286,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ixm1200_machdep.c,v 1.34 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: ixm1200_machdep.c,v 1.35 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003
|
||||
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixm1200_machdep.c,v 1.34 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ixm1200_machdep.c,v 1.35 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -240,6 +240,7 @@ cpu_reboot(howto, bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("Halted while still in the ICE age.\n");
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
@ -270,6 +271,8 @@ cpu_reboot(howto, bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lubbock_machdep.c,v 1.18 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: lubbock_machdep.c,v 1.19 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
|
||||
@ -112,7 +112,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.18 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lubbock_machdep.c,v 1.19 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -303,6 +303,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -334,6 +335,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* $Id: mpcsa_machdep.c,v 1.2 2008/07/03 01:15:39 matt Exp $ */
|
||||
/* $NetBSD: mpcsa_machdep.c,v 1.2 2008/07/03 01:15:39 matt Exp $ */
|
||||
/* $Id: mpcsa_machdep.c,v 1.3 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
/* $NetBSD: mpcsa_machdep.c,v 1.3 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Embedtronics Oy
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: mpcsa_machdep.c,v 1.2 2008/07/03 01:15:39 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mpcsa_machdep.c,v 1.3 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -201,6 +201,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("\r\n");
|
||||
printf("The operating system has halted.\r\n");
|
||||
printf("Please press any key to reboot.\r\n");
|
||||
@ -231,6 +232,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: npwr_fc_machdep.c,v 1.6 2008/04/27 18:58:46 matt Exp $ */
|
||||
/* $NetBSD: npwr_fc_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: npwr_fc_machdep.c,v 1.6 2008/04/27 18:58:46 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: npwr_fc_machdep.c,v 1.7 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -264,6 +264,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -293,6 +294,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nslu2_machdep.c,v 1.7 2008/04/28 20:23:17 martin Exp $ */
|
||||
/* $NetBSD: nslu2_machdep.c,v 1.8 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
@ -100,7 +100,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.7 2008/04/28 20:23:17 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: nslu2_machdep.c,v 1.8 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -285,6 +285,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -313,6 +314,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: osk5912_machdep.c,v 1.3 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: osk5912_machdep.c,v 1.4 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
||||
@ -99,7 +99,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: osk5912_machdep.c,v 1.3 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: osk5912_machdep.c,v 1.4 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -256,6 +256,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -287,6 +288,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: smdk2410_machdep.c,v 1.18 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: smdk2410_machdep.c,v 1.19 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003 Fujitsu Component Limited
|
||||
@ -105,7 +105,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.18 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: smdk2410_machdep.c,v 1.19 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -298,6 +298,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -327,6 +328,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: smdk2800_machdep.c,v 1.26 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: smdk2800_machdep.c,v 1.27 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2003, 2005 Fujitsu Component Limited
|
||||
@ -106,7 +106,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: smdk2800_machdep.c,v 1.26 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: smdk2800_machdep.c,v 1.27 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -292,6 +292,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -321,6 +322,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp $ */
|
||||
/* $NetBSD: sdp24xx_machdep.c,v 1.5 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Machine dependent functions for kernel setup for TI OSK5912 board.
|
||||
@ -125,7 +125,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.4 2008/08/27 11:03:10 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sdp24xx_machdep.c,v 1.5 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_machdep.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -295,6 +295,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -329,6 +330,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tsarm_machdep.c,v 1.7 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: tsarm_machdep.c,v 1.8 2008/11/11 06:46:41 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsarm_machdep.c,v 1.7 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tsarm_machdep.c,v 1.8 2008/11/11 06:46:41 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -257,6 +257,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("\r\n");
|
||||
printf("The operating system has halted.\r\n");
|
||||
printf("Please press any key to reboot.\r\n");
|
||||
@ -287,6 +288,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: viper_machdep.c,v 1.10 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: viper_machdep.c,v 1.11 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Startup routines for the Arcom Viper. Below you can trace the
|
||||
@ -112,7 +112,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: viper_machdep.c,v 1.10 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: viper_machdep.c,v 1.11 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -295,6 +295,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -326,6 +327,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
|
||||
@ -107,7 +107,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -129,6 +129,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/if_ether.h>
|
||||
@ -559,6 +560,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/*
|
||||
* Routerboard BIOS may autoboot, so "pseudo-halt".
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.37 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.38 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Itronix Inc.
|
||||
@ -107,7 +107,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -126,6 +126,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <net/if_ether.h>
|
||||
@ -482,6 +483,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((boothowto & RB_POWERDOWN) == RB_POWERDOWN)
|
||||
if (board && board->ab_poweroff)
|
||||
board->ab_poweroff();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.13 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.14 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
|
||||
@ -147,7 +147,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -163,6 +163,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -445,6 +446,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if 0
|
||||
if ((boothowto & RB_POWERDOWN) == RB_POWERDOWN)
|
||||
if (board && board->ab_poweroff)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.28 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.29 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||
@ -112,7 +112,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.28 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_execfmt.h"
|
||||
@ -128,6 +128,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.28 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/termios.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -428,6 +429,8 @@ cpu_reboot(howto, bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.20 2007/10/17 19:54:17 garbled Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.21 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.20 2007/10/17 19:54:17 garbled Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.21 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_marvell.h"
|
||||
#include "opt_ev64260.h"
|
||||
@ -380,6 +380,7 @@ cpu_reboot(int howto, char *what)
|
||||
splhigh();
|
||||
if (howto & RB_HALT) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("halted\n\n");
|
||||
cnhalt();
|
||||
while(1);
|
||||
@ -387,6 +388,8 @@ cpu_reboot(int howto, char *what)
|
||||
if (!cold && (howto & RB_DUMP))
|
||||
oea_dumpsys();
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("rebooting\n\n");
|
||||
if (what && *what) {
|
||||
if (strlen(what) > sizeof str - 5)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.23 2008/08/08 06:29:21 hannken Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.24 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
@ -30,12 +30,13 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/08/08 06:29:21 hannken Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_explora.h"
|
||||
#include "ksyms.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -44,6 +45,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/08/08 06:29:21 hannken Exp $")
|
||||
#include <sys/user.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -376,6 +378,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("halted\n\n");
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: obs200_machdep.c,v 1.5 2006/11/29 19:56:47 freza Exp $ */
|
||||
/* $NetBSD: obs200_machdep.c,v 1.6 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
/* Original: machdep.c,v 1.3 2005/01/17 17:24:09 shige Exp */
|
||||
|
||||
/*
|
||||
@ -68,7 +68,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs200_machdep.c,v 1.5 2006/11/29 19:56:47 freza Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs200_machdep.c,v 1.6 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -80,6 +80,7 @@ __KERNEL_RCSID(0, "$NetBSD: obs200_machdep.c,v 1.5 2006/11/29 19:56:47 freza Exp
|
||||
#include <sys/mount.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm.h>
|
||||
#include <uvm/uvm_extern.h>
|
||||
@ -244,6 +245,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
/* Power off here if we know how...*/
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: obs266_machdep.c,v 1.6 2006/11/29 19:56:47 freza Exp $ */
|
||||
/* $NetBSD: obs266_machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
/* Original: md_machdep.c,v 1.3 2005/01/24 18:47:37 shige Exp $ */
|
||||
|
||||
/*
|
||||
@ -68,7 +68,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs266_machdep.c,v 1.6 2006/11/29 19:56:47 freza Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs266_machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -80,6 +80,7 @@ __KERNEL_RCSID(0, "$NetBSD: obs266_machdep.c,v 1.6 2006/11/29 19:56:47 freza Exp
|
||||
#include <sys/mount.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm.h>
|
||||
#include <uvm/uvm_extern.h>
|
||||
@ -238,6 +239,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
/* Power off here if we know how...*/
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.3 2008/04/28 20:23:17 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.4 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
@ -61,7 +61,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2008/04/28 20:23:17 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -377,12 +377,15 @@ cpu_reboot(int howto, char *what)
|
||||
splhigh();
|
||||
if (howto & RB_HALT) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("halted\n\n");
|
||||
while(1);
|
||||
}
|
||||
if (!cold && (howto & RB_DUMP))
|
||||
oea_dumpsys();
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("rebooting\n\n");
|
||||
if (what && *what) {
|
||||
if (strlen(what) > sizeof str - 5)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Jachym Holecek
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -58,6 +58,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/user.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -411,6 +412,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
/* Power off here if we know how...*/
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.36 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.37 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2001, 2002 Wasabi Systems, Inc.
|
||||
@ -67,7 +67,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.37 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -89,6 +89,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.36 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/user.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -485,6 +486,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
/* Power off here if we know how...*/
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.60 2008/04/28 20:23:18 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.61 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.60 2008/04/28 20:23:18 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.61 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -80,6 +80,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.60 2008/04/28 20:23:18 martin Exp $");
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -199,6 +200,8 @@ cpu_reboot(howto, bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.14 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.15 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
@ -41,6 +41,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/mount.h>
|
||||
#include <sys/kcore.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -295,6 +296,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
if (platform.poweroff) {
|
||||
DELAY(1000000);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.200 2008/09/14 15:03:17 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.201 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.200 2008/09/14 15:03:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.201 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -665,6 +665,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.48 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.49 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
@ -63,7 +63,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.48 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.49 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -1365,6 +1365,8 @@ cpu_reboot(int howto, char *user_boot_string)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#ifdef POWER_SWITCH
|
||||
if (pwr_sw_state == 0 &&
|
||||
(howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpc_machdep.c,v 1.86 2008/06/13 13:24:10 rafal Exp $ */
|
||||
/* $NetBSD: hpc_machdep.c,v 1.87 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpc_machdep.c,v 1.86 2008/06/13 13:24:10 rafal Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpc_machdep.c,v 1.87 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -57,6 +57,7 @@ __KERNEL_RCSID(0, "$NetBSD: hpc_machdep.c,v 1.86 2008/06/13 13:24:10 rafal Exp $
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/conf.h> /* XXX for consinit related hacks */
|
||||
#include <sys/device.h>
|
||||
|
||||
#if NKSYMS || defined(DDB) || defined(LKM)
|
||||
#include <machine/db_machdep.h>
|
||||
@ -208,6 +209,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("Halted while still in the ICE age.\n");
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
@ -244,6 +246,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQs are disabled. */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.96 2008/07/02 17:28:55 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.97 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
||||
@ -108,7 +108,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.96 2008/07/02 17:28:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.97 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
@ -136,6 +136,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.96 2008/07/02 17:28:55 ad Exp $");
|
||||
#include <sys/mount.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -651,6 +652,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Finally, halt/reboot the system. */
|
||||
if (howto & RB_HALT) {
|
||||
printf("halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.61 2008/04/28 20:23:22 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.62 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.61 2008/04/28 20:23:22 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.62 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_md.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -49,6 +49,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.61 2008/04/28 20:23:22 martin Exp $");
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/user.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/mount.h>
|
||||
@ -416,6 +417,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Finally, halt/reboot the system. */
|
||||
#ifdef KLOADER
|
||||
if ((howto & RB_HALT) == 0) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.644 2008/10/21 15:46:32 cegger Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.645 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008 The NetBSD Foundation, Inc.
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.644 2008/10/21 15:46:32 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.645 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_beep.h"
|
||||
#include "opt_compat_ibcs2.h"
|
||||
@ -111,6 +111,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.644 2008/10/21 15:46:32 cegger Exp $")
|
||||
#include <sys/sa.h>
|
||||
#include <sys/savar.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#ifdef IPKDB
|
||||
#include <ipkdb/ipkdb.h>
|
||||
@ -896,6 +897,7 @@ int waittime = -1;
|
||||
void
|
||||
cpu_reboot(int howto, char *bootstr)
|
||||
{
|
||||
int s = 0; /* XXX gcc */
|
||||
|
||||
if (cold) {
|
||||
howto |= RB_HALT;
|
||||
@ -915,7 +917,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
}
|
||||
|
||||
/* Disable interrupts. */
|
||||
splhigh();
|
||||
s = splhigh();
|
||||
|
||||
/* Do a dump if requested. */
|
||||
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
|
||||
@ -924,6 +926,14 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
if (!cold) {
|
||||
splx(s);
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
splhigh();
|
||||
}
|
||||
|
||||
#ifdef MULTIPROCESSOR
|
||||
x86_broadcast_ipi(X86_IPI_HALT);
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.12 2008/11/03 15:13:16 rjs Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.13 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2008/11/03 15:13:16 rjs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
||||
@ -224,6 +224,8 @@ cpu_reboot(int howto, char *what)
|
||||
halt_sys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
aprint_normal("\n");
|
||||
aprint_normal("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iyonix_machdep.c,v 1.8 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: iyonix_machdep.c,v 1.9 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
|
||||
@ -73,7 +73,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iyonix_machdep.c,v 1.8 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iyonix_machdep.c,v 1.9 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -269,6 +269,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -298,6 +299,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.6 2008/04/28 20:23:26 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/04/28 20:23:26 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.7 2008/11/11 06:46:42 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -85,6 +85,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.6 2008/04/28 20:23:26 martin Exp $");
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
#include <ufs/mfs/mfs_extern.h> /* mfs_initminiroot() */
|
||||
@ -336,6 +337,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
_reg_write_1(LANDISK_PWRMNG, PWRMNG_POWEROFF);
|
||||
delay(1 * 1000 * 1000);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.55 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.56 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.56 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -404,6 +404,8 @@ haltsys:
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Finally, halt/reboot the system. */
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
u_int8_t *pio = (void *)0x4d000000;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.322 2008/09/14 15:03:17 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.323 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1990 The Regents of the University of California.
|
||||
@ -107,7 +107,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.322 2008/09/14 15:03:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.323 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_adb.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -146,6 +146,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.322 2008/09/14 15:03:17 tsutsui Exp $"
|
||||
#endif
|
||||
#define ELFSIZE 32
|
||||
#include <sys/exec_elf.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <m68k/cacheops.h>
|
||||
|
||||
@ -547,6 +548,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
/* First try to power down under VIA control. */
|
||||
via_powerdown();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.151 2008/09/26 03:39:59 macallan Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.152 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2008/09/26 03:39:59 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -60,6 +60,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2008/09/26 03:39:59 macallan Exp $
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -184,6 +185,8 @@ cpu_reboot(int howto, char *what)
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
delay(1000000);
|
||||
#if NCUDA > 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.58 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.59 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.59 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
@ -84,6 +84,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2008/07/02 17:28:56 ad Exp $");
|
||||
#include "opt_kgdb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/proc.h>
|
||||
@ -526,6 +527,8 @@ haltsys:
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN)
|
||||
prom_halt(0x80); /* rom monitor RB_PWOFF */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.43 2008/04/28 20:23:29 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.44 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -65,7 +65,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2008/04/28 20:23:29 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_memsize.h"
|
||||
@ -84,6 +84,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2008/04/28 20:23:29 martin Exp $");
|
||||
#include <machine/db_machdep.h>
|
||||
#include <ddb/db_extern.h>
|
||||
#endif
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <sh3/bscreg.h>
|
||||
#include <sh3/cpgreg.h>
|
||||
@ -204,6 +205,8 @@ cpu_reboot(howto, bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.129 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.130 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.129 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.130 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_m060sp.h"
|
||||
@ -105,6 +105,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.129 2008/07/02 17:28:56 ad Exp $");
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/syscallargs.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include "ksyms.h"
|
||||
|
||||
@ -749,6 +750,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.23 2007/10/17 19:55:51 garbled Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.24 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2007/10/17 19:55:51 garbled Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_mvmetype.h"
|
||||
@ -288,6 +288,8 @@ cpu_reboot(int howto, char *what)
|
||||
halt_sys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netwinder_machdep.c,v 1.66 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: netwinder_machdep.c,v 1.67 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997,1998 Mark Brinicombe.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.66 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netwinder_machdep.c,v 1.67 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_pmap_debug.h"
|
||||
@ -264,6 +264,7 @@ cpu_reboot(int howto, char *bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("The operating system has halted.\n");
|
||||
printf("Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
@ -295,6 +296,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.72 2008/09/14 15:03:17 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.73 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.72 2008/09/14 15:03:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.73 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -400,6 +400,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.98 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.99 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.98 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.99 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
|
||||
|
||||
@ -585,6 +585,8 @@ haltsys:
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN)
|
||||
prom_halt(0x80); /* rom monitor RB_PWOFF */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.85 2008/09/14 15:03:17 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.86 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.85 2008/09/14 15:03:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.86 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -552,6 +552,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.106 2008/04/28 20:23:31 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.107 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
@ -29,13 +29,15 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.106 2008/04/28 20:23:31 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -222,6 +224,7 @@ cpu_reboot(int howto, char *what)
|
||||
splhigh();
|
||||
if (howto & RB_HALT) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
aprint_normal("halted\n\n");
|
||||
if ((howto & 0x800) && machine_has_rtas &&
|
||||
rtas_has_func(RTAS_FUNC_POWER_OFF))
|
||||
@ -231,6 +234,8 @@ cpu_reboot(int howto, char *what)
|
||||
if (!cold && (howto & RB_DUMP))
|
||||
oea_dumpsys();
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
aprint_normal("rebooting\n\n");
|
||||
|
||||
if (machine_has_rtas && rtas_has_func(RTAS_FUNC_SYSTEM_REBOOT)) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.23 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.24 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kloader.h"
|
||||
@ -42,6 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2008/07/02 17:28:56 ad Exp $");
|
||||
#include <sys/mount.h>
|
||||
#include <sys/kcore.h>
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -249,6 +250,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN)
|
||||
sifbios_halt(0); /* power down */
|
||||
else if (howto & RB_HALT)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.223 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.224 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.223 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.224 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "fs_mfs.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -93,6 +93,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.223 2008/07/02 17:28:56 ad Exp $");
|
||||
#include <sys/boot_flag.h>
|
||||
#include <sys/ksyms.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/device.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -549,6 +550,8 @@ haltsys:
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Finally, halt/reboot the system. */
|
||||
printf("%s\n\n", ((howto & RB_HALT) != 0) ? "halted." : "rebooting...");
|
||||
prom_halt(howto & RB_HALT, bootstr);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.67 2007/10/17 19:56:53 garbled Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.68 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.67 2007/10/17 19:56:53 garbled Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.68 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_openpic.h"
|
||||
@ -275,6 +275,8 @@ cpu_reboot(int howto, char *what)
|
||||
halt_sys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.2 2008/04/28 20:23:34 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.3 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2008/04/28 20:23:34 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -505,6 +505,8 @@ cpu_reboot(int howto, char *what)
|
||||
halt_sys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.42 2008/04/19 02:01:03 nisimura Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.43 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.42 2008/04/19 02:01:03 nisimura Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -362,6 +362,8 @@ cpu_reboot(int howto, char *what)
|
||||
oea_dumpsys();
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.38 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.39 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2000, 2001
|
||||
@ -58,7 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.39 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_execfmt.h"
|
||||
@ -415,6 +415,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
haltsys:
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
printf("\n");
|
||||
printf("The operating system has halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.121 2008/08/03 00:35:03 tsutsui Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.122 2008/11/11 06:46:43 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.121 2008/08/03 00:35:03 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.122 2008/11/11 06:46:43 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -795,6 +795,8 @@ haltsys:
|
||||
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/*
|
||||
* Calling ARCBIOS->PowerDown() results in a "CP1 unusable trap"
|
||||
* which lands me back in DDB, at least on my Indy. So, enable
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ofw.c,v 1.43 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: ofw.c,v 1.44 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
@ -41,10 +41,11 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.43 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.44 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/mbuf.h>
|
||||
@ -347,6 +348,7 @@ ofw_boot(howto, bootstr)
|
||||
*/
|
||||
if (cold) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
printf("Halted while still in the ICE age.\n");
|
||||
printf("The operating system has halted.\n");
|
||||
goto ofw_exit;
|
||||
@ -372,6 +374,8 @@ ofw_boot(howto, bootstr)
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.282 2008/10/16 19:38:36 martin Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.283 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.282 2008/10/16 19:38:36 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.283 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_compat_sunos.h"
|
||||
@ -1101,6 +1101,8 @@ cpu_reboot(int howto, char *user_boot_string)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* If powerdown was requested, do it. */
|
||||
if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
|
||||
prom_interpret("power-off");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.227 2008/10/15 06:51:19 wrstuden Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.228 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.227 2008/10/15 06:51:19 wrstuden Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.228 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
@ -626,6 +626,8 @@ haltsys:
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#ifdef MULTIPROCESSOR
|
||||
/* Stop all secondary cpus */
|
||||
mp_halt_cpus();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.53 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.54 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -153,7 +153,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -549,6 +549,8 @@ cpu_reboot(int howto, char *user_boot_string)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
haltsys:
|
||||
printf("halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.185 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.186 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -78,7 +78,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.185 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.186 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -458,6 +458,8 @@ cpu_reboot(int howto, char *user_boot_string)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
haltsys:
|
||||
printf("halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.111 2008/07/02 17:28:56 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.112 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -75,7 +75,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.111 2008/07/02 17:28:56 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.112 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -485,6 +485,8 @@ cpu_reboot(int howto, char *user_boot_string)
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
if (howto & RB_HALT) {
|
||||
haltsys:
|
||||
printf("halted.\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.167 2008/10/17 08:12:23 cegger Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.168 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
@ -83,7 +83,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167 2008/10/17 08:12:23 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.168 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -349,6 +349,7 @@ cpu_reboot(int howto, char *b)
|
||||
splhigh(); /* extreme priority */
|
||||
if (howto & RB_HALT) {
|
||||
doshutdownhooks();
|
||||
pmf_system_shutdown(boothowto);
|
||||
if (dep_call->cpu_halt)
|
||||
(*dep_call->cpu_halt) ();
|
||||
printf("halting (in tight loop); hit\n\t^P\n\tHALT\n\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.150 2008/07/02 17:28:57 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.151 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.150 2008/07/02 17:28:57 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.151 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -495,6 +495,8 @@ cpu_reboot(int howto, char *bootstr)
|
||||
/* Run any shutdown hooks. */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
#if defined(PANICWAIT) && !defined(DDB)
|
||||
if ((howto & RB_HALT) == 0 && panicstr) {
|
||||
printf("hit any key to reboot...\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.9 2008/04/27 18:58:47 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.10 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
/* $OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $ */
|
||||
|
||||
/*
|
||||
@ -107,7 +107,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2008/04/27 18:58:47 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.10 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
@ -359,6 +359,8 @@ haltsys:
|
||||
/* Run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
|
||||
/* Make sure IRQ's are disabled */
|
||||
IRQdisable;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_subr.c,v 1.192 2008/10/14 14:17:49 pooka Exp $ */
|
||||
/* $NetBSD: kern_subr.c,v 1.193 2008/11/11 06:46:44 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
@ -79,7 +79,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.192 2008/10/14 14:17:49 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.193 2008/11/11 06:46:44 dyoung Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_md.h"
|
||||
@ -105,7 +105,6 @@ __KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.192 2008/10/14 14:17:49 pooka Exp $"
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/kauth.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/pmf.h>
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
@ -479,8 +478,6 @@ doshutdownhooks(void)
|
||||
free(dp, M_DEVBUF);
|
||||
#endif
|
||||
}
|
||||
|
||||
pmf_system_shutdown(boothowto);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user