kern_shutdown.c (228487) | kern_shutdown.c (228632) |
---|---|
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 228487 2011-12-14 02:31:32Z obrien $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 228632 2011-12-17 15:11:22Z avg $"); |
39 40#include "opt_ddb.h" 41#include "opt_kdb.h" 42#include "opt_panic.h" 43#include "opt_sched.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 391 unchanged lines hidden (view full) --- 438 vfs_unmountall(); 439 } 440 swapoff_all(); 441 DELAY(100000); /* wait for console output to finish */ 442 } 443 444 print_uptime(); 445 | 39 40#include "opt_ddb.h" 41#include "opt_kdb.h" 42#include "opt_panic.h" 43#include "opt_sched.h" 44#include "opt_watchdog.h" 45 46#include <sys/param.h> --- 391 unchanged lines hidden (view full) --- 438 vfs_unmountall(); 439 } 440 swapoff_all(); 441 DELAY(100000); /* wait for console output to finish */ 442 } 443 444 print_uptime(); 445 |
446 cngrab(); 447 |
|
446 /* 447 * Ok, now do things that assume all filesystem activity has 448 * been completed. 449 */ 450 EVENTHANDLER_INVOKE(shutdown_post_sync, howto); 451 452 if ((howto & (RB_HALT|RB_DUMP)) == RB_DUMP && !cold && !dumping) 453 doadump(TRUE); --- 154 unchanged lines hidden (view full) --- 608 panicstr = fmt; 609 newpanic = 1; 610 } 611 612 va_start(ap, fmt); 613 if (newpanic) { 614 (void)vsnprintf(buf, sizeof(buf), fmt, ap); 615 panicstr = buf; | 448 /* 449 * Ok, now do things that assume all filesystem activity has 450 * been completed. 451 */ 452 EVENTHANDLER_INVOKE(shutdown_post_sync, howto); 453 454 if ((howto & (RB_HALT|RB_DUMP)) == RB_DUMP && !cold && !dumping) 455 doadump(TRUE); --- 154 unchanged lines hidden (view full) --- 610 panicstr = fmt; 611 newpanic = 1; 612 } 613 614 va_start(ap, fmt); 615 if (newpanic) { 616 (void)vsnprintf(buf, sizeof(buf), fmt, ap); 617 panicstr = buf; |
618 cngrab(); |
|
616 printf("panic: %s\n", buf); 617 } else { 618 printf("panic: "); 619 vprintf(fmt, ap); 620 printf("\n"); 621 } 622 va_end(ap); 623#ifdef SMP --- 145 unchanged lines hidden --- | 619 printf("panic: %s\n", buf); 620 } else { 621 printf("panic: "); 622 vprintf(fmt, ap); 623 printf("\n"); 624 } 625 va_end(ap); 626#ifdef SMP --- 145 unchanged lines hidden --- |