Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/sun2 - Adapt to ddb constification.
details: https://anonhg.NetBSD.org/src/rev/9623cef79acf
branches: trunk
changeset: 581698:9623cef79acf
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 22:03:51 2005 +0000
description:
- Adapt to ddb constification.
- Add const.
diffstat:
sys/arch/sun2/sun2/db_machdep.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diffs (76 lines):
diff -r 57cf7ef4887a -r 9623cef79acf sys/arch/sun2/sun2/db_machdep.c
--- a/sys/arch/sun2/sun2/db_machdep.c Fri Jun 03 22:02:30 2005 +0000
+++ b/sys/arch/sun2/sun2/db_machdep.c Fri Jun 03 22:03:51 2005 +0000
@@ -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 @@
#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 @@
*/
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 @@
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 @@
pte_print(int pte)
{
int t;
- static char *pgt_names[] = {
+ static const char *pgt_names[] = {
"MEM", "OBIO", "VME0", "VME8",
};
Home |
Main Index |
Thread Index |
Old Index