Deleted Added
full compact
kern_shutdown.c (65980) kern_shutdown.c (67093)
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 65980 2000-09-17 12:20:49Z bde $
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 67093 2000-10-13 21:49:19Z ps $
40 */
41
42#include "opt_ddb.h"
43#include "opt_hw_wdog.h"
44#include "opt_panic.h"
45#include "opt_show_busybufs.h"
46
47#include <sys/param.h>

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

104#endif /* HW_WDOG */
105
106/*
107 * Variable panicstr contains argument to first call to panic; used as flag
108 * to indicate that the kernel has already called panic.
109 */
110const char *panicstr;
111
40 */
41
42#include "opt_ddb.h"
43#include "opt_hw_wdog.h"
44#include "opt_panic.h"
45#include "opt_show_busybufs.h"
46
47#include <sys/param.h>

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

104#endif /* HW_WDOG */
105
106/*
107 * Variable panicstr contains argument to first call to panic; used as flag
108 * to indicate that the kernel has already called panic.
109 */
110const char *panicstr;
111
112int dumping; /* system is dumping */
113
112static void boot(int) __dead2;
113static void dumpsys(void);
114static void poweroff_wait(void *, int);
115static void shutdown_halt(void *junk, int howto);
116static void shutdown_panic(void *junk, int howto);
117static void shutdown_reset(void *junk, int howto);
118
119/* register various local shutdown events */

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

464 * Doadump comes here after turning off memory management and
465 * getting on the dump stack, either when called above, or by
466 * the auto-restart code.
467 */
468static void
469dumpsys(void)
470{
471 int error;
114static void boot(int) __dead2;
115static void dumpsys(void);
116static void poweroff_wait(void *, int);
117static void shutdown_halt(void *junk, int howto);
118static void shutdown_panic(void *junk, int howto);
119static void shutdown_reset(void *junk, int howto);
120
121/* register various local shutdown events */

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

466 * Doadump comes here after turning off memory management and
467 * getting on the dump stack, either when called above, or by
468 * the auto-restart code.
469 */
470static void
471dumpsys(void)
472{
473 int error;
472 static int dumping;
473
474 savectx(&dumppcb);
475#ifdef __i386__
476 dumppcb.pcb_cr3 = rcr3();
477#endif
478 if (dumping++) {
479 printf("Dump already in progress, bailing...\n");
480 return;

--- 140 unchanged lines hidden ---
474
475 savectx(&dumppcb);
476#ifdef __i386__
477 dumppcb.pcb_cr3 = rcr3();
478#endif
479 if (dumping++) {
480 printf("Dump already in progress, bailing...\n");
481 return;

--- 140 unchanged lines hidden ---