xref: /freebsd/sys/powerpc/powerpc/dump_machdep.c (revision bdb9ab0dd925b804280af9ecbdb01ceea66a6088)
127457a80SMarcel Moolenaar /*-
227457a80SMarcel Moolenaar  * Copyright (c) 2002 Marcel Moolenaar
327457a80SMarcel Moolenaar  * All rights reserved.
427457a80SMarcel Moolenaar  *
527457a80SMarcel Moolenaar  * Redistribution and use in source and binary forms, with or without
627457a80SMarcel Moolenaar  * modification, are permitted provided that the following conditions
727457a80SMarcel Moolenaar  * are met:
827457a80SMarcel Moolenaar  *
927457a80SMarcel Moolenaar  * 1. Redistributions of source code must retain the above copyright
1027457a80SMarcel Moolenaar  *    notice, this list of conditions and the following disclaimer.
1127457a80SMarcel Moolenaar  * 2. Redistributions in binary form must reproduce the above copyright
1227457a80SMarcel Moolenaar  *    notice, this list of conditions and the following disclaimer in the
1327457a80SMarcel Moolenaar  *    documentation and/or other materials provided with the distribution.
1427457a80SMarcel Moolenaar  *
1527457a80SMarcel Moolenaar  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1627457a80SMarcel Moolenaar  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1727457a80SMarcel Moolenaar  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1827457a80SMarcel Moolenaar  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1927457a80SMarcel Moolenaar  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2027457a80SMarcel Moolenaar  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2127457a80SMarcel Moolenaar  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2227457a80SMarcel Moolenaar  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2327457a80SMarcel Moolenaar  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2427457a80SMarcel Moolenaar  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2527457a80SMarcel Moolenaar  */
2627457a80SMarcel Moolenaar 
2727457a80SMarcel Moolenaar #include <sys/cdefs.h>
2827457a80SMarcel Moolenaar __FBSDID("$FreeBSD$");
2927457a80SMarcel Moolenaar 
3027457a80SMarcel Moolenaar #include <sys/param.h>
3127457a80SMarcel Moolenaar #include <sys/systm.h>
3227457a80SMarcel Moolenaar #include <sys/conf.h>
3327457a80SMarcel Moolenaar #include <sys/kerneldump.h>
3427457a80SMarcel Moolenaar #include <sys/sysctl.h>
3527457a80SMarcel Moolenaar 
36*bdb9ab0dSMark Johnston int do_minidump = 1;
37*bdb9ab0dSMark Johnston SYSCTL_INT(_debug, OID_AUTO, minidump, CTLFLAG_RWTUN, &do_minidump, 0,
38*bdb9ab0dSMark Johnston     "Enable mini crash dumps");
39