kern_shutdown.c (31275) | kern_shutdown.c (31403) |
---|---|
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 * $Id: kern_shutdown.c,v 1.25 1997/11/06 19:29:13 phk Exp $ | 39 * $Id: kern_shutdown.c,v 1.26 1997/11/18 15:16:43 bde Exp $ |
40 */ 41 42#include "opt_ddb.h" 43#include "opt_panic.h" 44#include "opt_show_busybufs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> --- 276 unchanged lines hidden (view full) --- 324 */ 325static u_long const dumpmag = 0x8fca0101UL; 326 327static int dumpsize = 0; /* also for savecore */ 328 329static int dodump = 1; 330SYSCTL_INT(_machdep, OID_AUTO, do_dump, CTLFLAG_RW, &dodump, 0, ""); 331 | 40 */ 41 42#include "opt_ddb.h" 43#include "opt_panic.h" 44#include "opt_show_busybufs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> --- 276 unchanged lines hidden (view full) --- 324 */ 325static u_long const dumpmag = 0x8fca0101UL; 326 327static int dumpsize = 0; /* also for savecore */ 328 329static int dodump = 1; 330SYSCTL_INT(_machdep, OID_AUTO, do_dump, CTLFLAG_RW, &dodump, 0, ""); 331 |
332/* ARGSUSED */ 333static void dump_conf __P((void *dummy)); 334static void 335dump_conf(dummy) 336 void *dummy; 337{ 338 cpu_dumpconf(); 339} 340SYSINIT(dump_conf, SI_SUB_DUMP_CONF, SI_ORDER_FIRST, dump_conf, NULL) 341 |
|
332/* 333 * Doadump comes here after turning off memory management and 334 * getting on the dump stack, either when called above, or by 335 * the auto-restart code. 336 */ 337static void 338dumpsys(void) 339{ --- 153 unchanged lines hidden --- | 342/* 343 * Doadump comes here after turning off memory management and 344 * getting on the dump stack, either when called above, or by 345 * the auto-restart code. 346 */ 347static void 348dumpsys(void) 349{ --- 153 unchanged lines hidden --- |