Deleted Added
full compact
kern_shutdown.c (230643) kern_shutdown.c (235777)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 230643 2012-01-28 14:00:21Z attilio $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 235777 2012-05-22 07:23:41Z harti $");
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_sched.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

--- 99 unchanged lines hidden (view full) ---

146const char *panicstr;
147
148int dumping; /* system is dumping */
149int rebooting; /* system is rebooting */
150static struct dumperinfo dumper; /* our selected dumper */
151
152/* Context information for dump-debuggers. */
153static struct pcb dumppcb; /* Registers. */
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_sched.h"
44#include "opt_watchdog.h"
45
46#include <sys/param.h>

--- 99 unchanged lines hidden (view full) ---

146const char *panicstr;
147
148int dumping; /* system is dumping */
149int rebooting; /* system is rebooting */
150static struct dumperinfo dumper; /* our selected dumper */
151
152/* Context information for dump-debuggers. */
153static struct pcb dumppcb; /* Registers. */
154static lwpid_t dumptid; /* Thread ID. */
154lwpid_t dumptid; /* Thread ID. */
155
156static void poweroff_wait(void *, int);
157static void shutdown_halt(void *junk, int howto);
158static void shutdown_panic(void *junk, int howto);
159static void shutdown_reset(void *junk, int howto);
160
161/* register various local shutdown events */
162static void

--- 608 unchanged lines hidden ---
155
156static void poweroff_wait(void *, int);
157static void shutdown_halt(void *junk, int howto);
158static void shutdown_panic(void *junk, int howto);
159static void shutdown_reset(void *junk, int howto);
160
161/* register various local shutdown events */
162static void

--- 608 unchanged lines hidden ---