Deleted Added
full compact
kern_shutdown.c (107036) kern_shutdown.c (108682)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 107036 2002-11-18 02:41:03Z alfred $
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 108682 2003-01-04 20:54:58Z phk $
40 */
41
42#include "opt_ddb.h"
43#include "opt_ddb_trace.h"
44#include "opt_ddb_unattended.h"
45#include "opt_hw_wdog.h"
46#include "opt_mac.h"
47#include "opt_panic.h"

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

433{
434 printf("Rebooting...\n");
435 DELAY(1000000); /* wait 1 sec for printf's to complete and be read */
436 /* cpu_boot(howto); */ /* doesn't do anything at the moment */
437 cpu_reset();
438 /* NOTREACHED */ /* assuming reset worked */
439}
440
40 */
41
42#include "opt_ddb.h"
43#include "opt_ddb_trace.h"
44#include "opt_ddb_unattended.h"
45#include "opt_hw_wdog.h"
46#include "opt_mac.h"
47#include "opt_panic.h"

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

433{
434 printf("Rebooting...\n");
435 DELAY(1000000); /* wait 1 sec for printf's to complete and be read */
436 /* cpu_boot(howto); */ /* doesn't do anything at the moment */
437 cpu_reset();
438 /* NOTREACHED */ /* assuming reset worked */
439}
440
441/*
442 * Print a backtrace if we can.
443 */
444
445void
446backtrace(void)
447{
448#ifdef DDB
449 db_print_backtrace();
450#else
451 printf("Sorry, need DDB option to print backtrace");
452#endif
453}
454
441#ifdef SMP
442static u_int panic_cpu = NOCPU;
443#endif
444
445/*
446 * Panic is called on unresolvable fatal errors. It prints "panic: mesg",
447 * and then reboots. If we are called twice, then we avoid trying to sync
448 * the disks as this often leads to recursive panics.

--- 143 unchanged lines hidden ---
455#ifdef SMP
456static u_int panic_cpu = NOCPU;
457#endif
458
459/*
460 * Panic is called on unresolvable fatal errors. It prints "panic: mesg",
461 * and then reboots. If we are called twice, then we avoid trying to sync
462 * the disks as this often leads to recursive panics.

--- 143 unchanged lines hidden ---