Deleted Added
full compact
kern_shutdown.c (85202) kern_shutdown.c (86313)
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 85202 2001-10-19 23:32:03Z peter $
39 * $FreeBSD: head/sys/kern/kern_shutdown.c 86313 2001-11-13 01:08:54Z ps $
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>

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

539
540 default:
541 printf("unknown, error = %d\n", error);
542 break;
543 }
544}
545
546int
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>

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

539
540 default:
541 printf("unknown, error = %d\n", error);
542 break;
543 }
544}
545
546int
547dumpstatus(vm_offset_t addr, long count)
547dumpstatus(vm_offset_t addr, off_t count)
548{
549 int c;
550
551 if (addr % (1024 * 1024) == 0) {
552#ifdef HW_WDOG
553 if (wdog_tickler)
554 (*wdog_tickler)();
555#endif
548{
549 int c;
550
551 if (addr % (1024 * 1024) == 0) {
552#ifdef HW_WDOG
553 if (wdog_tickler)
554 (*wdog_tickler)();
555#endif
556 printf("%ld ", count / (1024 * 1024));
556 printf("%ld ", (long)(count / (1024 * 1024)));
557 }
558
559 if ((c = cncheckc()) == 0x03)
560 return -1;
561 else if (c != -1)
562 printf("[CTRL-C to abort] ");
563
564 return 0;

--- 121 unchanged lines hidden ---
557 }
558
559 if ((c = cncheckc()) == 0x03)
560 return -1;
561 else if (c != -1)
562 printf("[CTRL-C to abort] ");
563
564 return 0;

--- 121 unchanged lines hidden ---