- Adapt to ddb constification.

- Add const.
This commit is contained in:
tsutsui 2005-06-03 22:03:51 +00:00
parent 6df30aa4a7
commit 9eb856b0da

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/proc.h>
@ -59,10 +59,10 @@ __KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.5 2005/01/22 15:36:09 chs Exp $");
#include <ddb/db_output.h>
#include <ddb/db_interface.h>
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",
};