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

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
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.

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

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 222801 2011-06-07 01:28:12Z marcel $");
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 222865 2011-06-08 19:28:59Z attilio $");
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_show_busybufs.h"
44#include "opt_sched.h"
45#include "opt_watchdog.h"
46

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

550 */
551 if (panic_cpu != PCPU_GET(cpuid))
552 while (atomic_cmpset_int(&panic_cpu, NOCPU,
553 PCPU_GET(cpuid)) == 0)
554 while (panic_cpu != NOCPU)
555 ; /* nothing */
556#endif
557
39
40#include "opt_ddb.h"
41#include "opt_kdb.h"
42#include "opt_panic.h"
43#include "opt_show_busybufs.h"
44#include "opt_sched.h"
45#include "opt_watchdog.h"
46

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

550 */
551 if (panic_cpu != PCPU_GET(cpuid))
552 while (atomic_cmpset_int(&panic_cpu, NOCPU,
553 PCPU_GET(cpuid)) == 0)
554 while (panic_cpu != NOCPU)
555 ; /* nothing */
556#endif
557
558 bootopt = RB_AUTOBOOT | RB_DUMP;
558 bootopt = RB_AUTOBOOT;
559 newpanic = 0;
560 if (panicstr)
561 bootopt |= RB_NOSYNC;
562 else {
559 newpanic = 0;
560 if (panicstr)
561 bootopt |= RB_NOSYNC;
562 else {
563 bootopt |= RB_DUMP;
563 panicstr = fmt;
564 newpanic = 1;
565 }
566
567 va_start(ap, fmt);
568 if (newpanic) {
569 (void)vsnprintf(buf, sizeof(buf), fmt, ap);
570 panicstr = buf;

--- 158 unchanged lines hidden ---
564 panicstr = fmt;
565 newpanic = 1;
566 }
567
568 va_start(ap, fmt);
569 if (newpanic) {
570 (void)vsnprintf(buf, sizeof(buf), fmt, ap);
571 panicstr = buf;

--- 158 unchanged lines hidden ---