kern_shutdown.c (82115) | kern_shutdown.c (82119) |
---|---|
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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 | 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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 |
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 82115 2001-08-21 22:55:20Z jhb $ | 39 * $FreeBSD: head/sys/kern/kern_shutdown.c 82119 2001-08-21 23:29:40Z jhb $ |
40 */ 41 42#include "opt_ddb.h" 43#include "opt_hw_wdog.h" 44#include "opt_panic.h" 45#include "opt_show_busybufs.h" 46 47#include <sys/param.h> --- 14 unchanged lines hidden (view full) --- 62#include <sys/sysctl.h> 63#include <sys/sysproto.h> 64#include <sys/vnode.h> 65 66#include <machine/pcb.h> 67#include <machine/md_var.h> 68 69#include <sys/signalvar.h> | 40 */ 41 42#include "opt_ddb.h" 43#include "opt_hw_wdog.h" 44#include "opt_panic.h" 45#include "opt_show_busybufs.h" 46 47#include <sys/param.h> --- 14 unchanged lines hidden (view full) --- 62#include <sys/sysctl.h> 63#include <sys/sysproto.h> 64#include <sys/vnode.h> 65 66#include <machine/pcb.h> 67#include <machine/md_var.h> 68 69#include <sys/signalvar.h> |
70#ifdef DDB 71#include <ddb/ddb.h> 72#endif |
|
70 71#ifndef PANIC_REBOOT_WAIT_TIME 72#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 73#endif 74 75/* 76 * Note that stdarg.h and the ANSI style va_start macro is used for both 77 * ANSI and traditional C compilers. --- 125 unchanged lines hidden (view full) --- 203 */ 204static void 205boot(int howto) 206{ 207 208 /* collect extra flags that shutdown_nice might have set */ 209 howto |= shutdown_howto; 210 | 73 74#ifndef PANIC_REBOOT_WAIT_TIME 75#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 76#endif 77 78/* 79 * Note that stdarg.h and the ANSI style va_start macro is used for both 80 * ANSI and traditional C compilers. --- 125 unchanged lines hidden (view full) --- 206 */ 207static void 208boot(int howto) 209{ 210 211 /* collect extra flags that shutdown_nice might have set */ 212 howto |= shutdown_howto; 213 |
214#ifdef DDB 215 /* We are out of the debugger now. */ 216 db_active = 0; 217#endif 218 |
|
211#ifdef SMP 212 if (smp_active) 213 printf("boot() called on cpu#%d\n", PCPU_GET(cpuid)); 214#endif 215 /* 216 * Do any callouts that should be done BEFORE syncing the filesystems. 217 */ 218 EVENTHANDLER_INVOKE(shutdown_pre_sync, howto); --- 446 unchanged lines hidden --- | 219#ifdef SMP 220 if (smp_active) 221 printf("boot() called on cpu#%d\n", PCPU_GET(cpuid)); 222#endif 223 /* 224 * Do any callouts that should be done BEFORE syncing the filesystems. 225 */ 226 EVENTHANDLER_INVOKE(shutdown_pre_sync, howto); --- 446 unchanged lines hidden --- |