From ae63cdb7c0f3d5eb4b373ae406628ba039b853dc Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 22 Feb 2007 14:39:34 +0000 Subject: [PATCH] Fix lossage on bool changes. --- sys/arch/sun3/sun3/db_machdep.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/sys/arch/sun3/sun3/db_machdep.c b/sys/arch/sun3/sun3/db_machdep.c index 86ef34395c25..8087ce881f07 100644 --- a/sys/arch/sun3/sun3/db_machdep.c +++ b/sys/arch/sun3/sun3/db_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.c,v 1.22 2005/12/11 12:19:27 christos Exp $ */ +/* $NetBSD: db_machdep.c,v 1.23 2007/02/22 14:39:34 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.22 2005/12/11 12:19:27 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.23 2007/02/22 14:39:34 tsutsui Exp $"); #include #include @@ -58,10 +58,10 @@ __KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.22 2005/12/11 12:19:27 christos Exp #include #include -static void db_mach_abort (db_expr_t, int, db_expr_t, const char *); -static void db_mach_halt (db_expr_t, int, db_expr_t, const char *); -static void db_mach_reboot (db_expr_t, int, db_expr_t, const char *); -static void db_mach_pagemap(db_expr_t, int, db_expr_t, const char *); +static void db_mach_abort (db_expr_t, bool, db_expr_t, const char *); +static void db_mach_halt (db_expr_t, bool, db_expr_t, const char *); +static void db_mach_reboot (db_expr_t, bool, db_expr_t, const char *); +static void db_mach_pagemap(db_expr_t, bool, db_expr_t, const char *); const struct db_command db_machine_command_table[] = { { "abort", db_mach_abort, 0, NULL }, @@ -80,21 +80,25 @@ const struct db_command db_machine_command_table[] = { */ static void -db_mach_abort(db_expr_t addr, int have_addr, db_expr_t count, const char *modif) +db_mach_abort(db_expr_t addr, bool have_addr, db_expr_t count, + const char *modif) { + sunmon_abort(); } static void -db_mach_halt(db_expr_t addr, int have_addr, db_expr_t count, const char *modif) +db_mach_halt(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif) { + sunmon_halt(); } static void -db_mach_reboot(db_expr_t addr, int have_addr, db_expr_t count, +db_mach_reboot(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif) { + sunmon_reboot(""); } @@ -102,7 +106,7 @@ db_mach_reboot(db_expr_t addr, int have_addr, db_expr_t count, static void pte_print(int); static void -db_mach_pagemap(db_expr_t addr, int have_addr, db_expr_t count, +db_mach_pagemap(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif) { u_long va = m68k_trunc_page((u_long)addr);