From 9eb856b0dac04928a7df1097665e595d78ea1a0b Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 3 Jun 2005 22:03:51 +0000 Subject: [PATCH] - Adapt to ddb constification. - Add const. --- sys/arch/sun2/sun2/db_machdep.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/sys/arch/sun2/sun2/db_machdep.c b/sys/arch/sun2/sun2/db_machdep.c index 4f72d7594eee..ffd5f4a51fe3 100644 --- a/sys/arch/sun2/sun2/db_machdep.c +++ b/sys/arch/sun2/sun2/db_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.c,v 1.5 2005/01/22 15:36:09 chs Exp $ */ +/* $NetBSD: db_machdep.c,v 1.6 2005/06/03 22:03:51 tsutsui Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.5 2005/01/22 15:36:09 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.6 2005/06/03 22:03:51 tsutsui Exp $"); #include #include @@ -59,10 +59,10 @@ __KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.5 2005/01/22 15:36:09 chs Exp $"); #include #include -static void db_mach_abort (db_expr_t, int, db_expr_t, char *); -static void db_mach_halt (db_expr_t, int, db_expr_t, char *); -static void db_mach_reboot (db_expr_t, int, db_expr_t, char *); -static void db_mach_pagemap(db_expr_t, int, db_expr_t, char *); +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 *); const struct db_command db_machine_command_table[] = { { "abort", db_mach_abort, 0, 0 }, @@ -81,19 +81,20 @@ const struct db_command db_machine_command_table[] = { */ static void -db_mach_abort(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +db_mach_abort(db_expr_t addr, int have_addr, db_expr_t count, const char *modif) { prom_abort(); } static void -db_mach_halt(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +db_mach_halt(db_expr_t addr, int have_addr, db_expr_t count, const char *modif) { prom_halt(); } static void -db_mach_reboot(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +db_mach_reboot(db_expr_t addr, int have_addr, db_expr_t count, + const char *modif) { prom_boot(""); } @@ -102,7 +103,8 @@ db_mach_reboot(db_expr_t addr, int have_addr, db_expr_t count, char *modif) static void pte_print(int); static void -db_mach_pagemap(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +db_mach_pagemap(db_expr_t addr, int have_addr, db_expr_t count, + const char *modif) { u_long va = m68k_trunc_page((u_long)addr); int pte; @@ -121,7 +123,7 @@ static void pte_print(int pte) { int t; - static char *pgt_names[] = { + static const char *pgt_names[] = { "MEM", "OBIO", "VME0", "VME8", };