kern_shutdown.c (ef73ae4b0ccbd4beded1e8cce7f528799a1ae5ed) kern_shutdown.c (1b367556b5834cc5add330d4dc19340089c86939)
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.

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

535panic(const char *fmt, ...)
536{
537 int bootopt;
538 va_list ap;
539 static char buf[256];
540
541#ifdef SMP
542 /* Only 1 CPU can panic at a time */
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.

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

535panic(const char *fmt, ...)
536{
537 int bootopt;
538 va_list ap;
539 static char buf[256];
540
541#ifdef SMP
542 /* Only 1 CPU can panic at a time */
543 s_lock(&panic_lock);
543 mtx_enter(&panic_mtx, MTX_DEF);
544#endif
545
546 bootopt = RB_AUTOBOOT | RB_DUMP;
547 if (panicstr)
548 bootopt |= RB_NOSYNC;
549 else
550 panicstr = fmt;
551

--- 70 unchanged lines hidden ---
544#endif
545
546 bootopt = RB_AUTOBOOT | RB_DUMP;
547 if (panicstr)
548 bootopt |= RB_NOSYNC;
549 else
550 panicstr = fmt;
551

--- 70 unchanged lines hidden ---