Deleted Added
full compact
kern_shutdown.c (70063) kern_shutdown.c (70861)
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 70063 2000-12-15 20:08:20Z jhb $
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 70861 2001-01-10 04:43:51Z jake $
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>

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

204boot(int howto)
205{
206
207 /* collect extra flags that shutdown_nice might have set */
208 howto |= shutdown_howto;
209
210#ifdef SMP
211 if (smp_active)
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>

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

204boot(int howto)
205{
206
207 /* collect extra flags that shutdown_nice might have set */
208 howto |= shutdown_howto;
209
210#ifdef SMP
211 if (smp_active)
212 printf("boot() called on cpu#%d\n", cpuid);
212 printf("boot() called on cpu#%d\n", PCPU_GET(cpuid));
213#endif
214 /*
215 * Do any callouts that should be done BEFORE syncing the filesystems.
216 */
217 EVENTHANDLER_INVOKE(shutdown_pre_sync, howto);
218
219 /*
220 * Now sync filesystems

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

552 va_start(ap, fmt);
553 (void)vsnprintf(buf, sizeof(buf), fmt, ap);
554 if (panicstr == fmt)
555 panicstr = buf;
556 va_end(ap);
557 printf("panic: %s\n", buf);
558#ifdef SMP
559 /* two seperate prints in case of an unmapped page and trap */
213#endif
214 /*
215 * Do any callouts that should be done BEFORE syncing the filesystems.
216 */
217 EVENTHANDLER_INVOKE(shutdown_pre_sync, howto);
218
219 /*
220 * Now sync filesystems

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

552 va_start(ap, fmt);
553 (void)vsnprintf(buf, sizeof(buf), fmt, ap);
554 if (panicstr == fmt)
555 panicstr = buf;
556 va_end(ap);
557 printf("panic: %s\n", buf);
558#ifdef SMP
559 /* two seperate prints in case of an unmapped page and trap */
560 printf("cpuid = %d; ", cpuid);
560 printf("cpuid = %d; ", PCPU_GET(cpuid));
561#ifdef APIC_IO
562 printf("lapic.id = %08x\n", lapic.id);
563#endif
564#endif
565
566#if defined(DDB)
567 if (debugger_on_panic)
568 Debugger ("panic");

--- 53 unchanged lines hidden ---
561#ifdef APIC_IO
562 printf("lapic.id = %08x\n", lapic.id);
563#endif
564#endif
565
566#if defined(DDB)
567 if (debugger_on_panic)
568 Debugger ("panic");

--- 53 unchanged lines hidden ---