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