Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/sun3 Adapt to ddb constification.
details: https://anonhg.NetBSD.org/src/rev/2b2157504a26
branches: trunk
changeset: 581662:2b2157504a26
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 15:07:52 2005 +0000
description:
Adapt to ddb constification.
diffstat:
sys/arch/sun3/sun3/db_machdep.c | 30 ++++++++++++++++--------------
sys/arch/sun3/sun3/db_memrw.c | 14 +++++++-------
2 files changed, 23 insertions(+), 21 deletions(-)
diffs (137 lines):
diff -r 30c7a75d97d7 -r 2b2157504a26 sys/arch/sun3/sun3/db_machdep.c
--- a/sys/arch/sun3/sun3/db_machdep.c Fri Jun 03 15:07:12 2005 +0000
+++ b/sys/arch/sun3/sun3/db_machdep.c Fri Jun 03 15:07:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.c,v 1.20 2005/01/22 15:36:10 chs Exp $ */
+/* $NetBSD: db_machdep.c,v 1.21 2005/06/03 15:07:52 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.20 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.21 2005/06/03 15:07:52 tsutsui Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -58,16 +58,16 @@
#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 },
- { "halt", db_mach_halt, 0, 0 },
- { "pgmap", db_mach_pagemap, CS_SET_DOT, 0 },
- { "reboot", db_mach_reboot, 0, 0 },
+ { "abort", db_mach_abort, 0, NULL },
+ { "halt", db_mach_halt, 0, NULL },
+ { "pgmap", db_mach_pagemap, CS_SET_DOT, NULL },
+ { "reboot", db_mach_reboot, 0, NULL },
{ NULL }
};
@@ -80,19 +80,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)
{
sunmon_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)
{
sunmon_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)
{
sunmon_reboot("");
}
@@ -101,7 +102,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;
diff -r 30c7a75d97d7 -r 2b2157504a26 sys/arch/sun3/sun3/db_memrw.c
--- a/sys/arch/sun3/sun3/db_memrw.c Fri Jun 03 15:07:12 2005 +0000
+++ b/sys/arch/sun3/sun3/db_memrw.c Fri Jun 03 15:07:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_memrw.c,v 1.24 2005/01/22 15:36:10 chs Exp $ */
+/* $NetBSD: db_memrw.c,v 1.25 2005/06/03 15:07:52 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.24 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.25 2005/06/03 15:07:52 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -72,7 +72,7 @@
extern char etext[]; /* defined by the linker */
extern char kernel_text[]; /* locore.s */
-static void db_write_text(char *, size_t size, char *);
+static void db_write_text(char *, size_t size, const char *);
/*
@@ -106,7 +106,7 @@
* Makes text page writable temporarily.
*/
static void
-db_write_text(char *dst, size_t size, char *data)
+db_write_text(char *dst, size_t size, const char *data)
{
int oldpte, tmppte;
vaddr_t pgva, prevpg;
@@ -180,7 +180,7 @@
* Write bytes to kernel address space for debugger.
*/
void
-db_write_bytes(db_addr_t addr, size_t size, char *data)
+db_write_bytes(db_addr_t addr, size_t size, const char *data)
{
char *dst = (char *)addr;
@@ -191,12 +191,12 @@
}
if (size == 4) {
- *((int *)dst) = *((int *)data);
+ *((int *)dst) = *((const int *)data);
return;
}
if (size == 2) {
- *((short *)dst) = *((short *)data);
+ *((short *)dst) = *((const short *)data);
return;
}
Home |
Main Index |
Thread Index |
Old Index