Deleted Added
full compact
kern_shutdown.c (132413) kern_shutdown.c (132506)
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 132413 2004-07-19 18:06:12Z julian $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 132506 2004-07-21 16:04:46Z rwatson $");
39
40#include "opt_kdb.h"
41#include "opt_hw_wdog.h"
42#include "opt_mac.h"
43#include "opt_panic.h"
44#include "opt_show_busybufs.h"
45
46#include <sys/param.h>

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

93int trace_on_panic = 1;
94#else
95int trace_on_panic = 0;
96#endif
97SYSCTL_INT(_debug, OID_AUTO, trace_on_panic, CTLFLAG_RW,
98 &trace_on_panic, 0, "Print stack trace on kernel panic");
99#endif /* KDB */
100
39
40#include "opt_kdb.h"
41#include "opt_hw_wdog.h"
42#include "opt_mac.h"
43#include "opt_panic.h"
44#include "opt_show_busybufs.h"
45
46#include <sys/param.h>

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

93int trace_on_panic = 1;
94#else
95int trace_on_panic = 0;
96#endif
97SYSCTL_INT(_debug, OID_AUTO, trace_on_panic, CTLFLAG_RW,
98 &trace_on_panic, 0, "Print stack trace on kernel panic");
99#endif /* KDB */
100
101int sync_on_panic = 1;
101int sync_on_panic = 0;
102SYSCTL_INT(_kern, OID_AUTO, sync_on_panic, CTLFLAG_RW,
103 &sync_on_panic, 0, "Do a sync before rebooting from a panic");
104
105SYSCTL_NODE(_kern, OID_AUTO, shutdown, CTLFLAG_RW, 0, "Shutdown environment");
106
107#ifdef HW_WDOG
108/*
109 * If there is a hardware watchdog, point this at the function needed to

--- 523 unchanged lines hidden ---
102SYSCTL_INT(_kern, OID_AUTO, sync_on_panic, CTLFLAG_RW,
103 &sync_on_panic, 0, "Do a sync before rebooting from a panic");
104
105SYSCTL_NODE(_kern, OID_AUTO, shutdown, CTLFLAG_RW, 0, "Shutdown environment");
106
107#ifdef HW_WDOG
108/*
109 * If there is a hardware watchdog, point this at the function needed to

--- 523 unchanged lines hidden ---