Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/sh5 Adapt to constification.
details: https://anonhg.NetBSD.org/src/rev/6607084fdc85
branches: trunk
changeset: 581665:6607084fdc85
user: he <he%NetBSD.org@localhost>
date: Fri Jun 03 15:18:38 2005 +0000
description:
Adapt to constification.
diffstat:
sys/arch/sh5/sh5/db_interface.c | 12 ++++++------
sys/arch/sh5/sh5/db_memrw.c | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (99 lines):
diff -r ddae10261666 -r 6607084fdc85 sys/arch/sh5/sh5/db_interface.c
--- a/sys/arch/sh5/sh5/db_interface.c Fri Jun 03 15:11:14 2005 +0000
+++ b/sys/arch/sh5/sh5/db_interface.c Fri Jun 03 15:18:38 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.12 2003/07/15 03:36:00 lukem Exp $ */
+/* $NetBSD: db_interface.c,v 1.13 2005/06/03 15:18:38 he Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.12 2003/07/15 03:36:00 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.13 2005/06/03 15:18:38 he Exp $");
#include "opt_ddb.h"
@@ -159,8 +159,8 @@
/*
* SH5-specific commands
*/
-static void db_sh5_tlb(db_expr_t, int, db_expr_t, char *);
-static void db_sh5_fpr(db_expr_t, int, db_expr_t, char *);
+static void db_sh5_tlb(db_expr_t, int, db_expr_t, const char *);
+static void db_sh5_fpr(db_expr_t, int, db_expr_t, const char *);
const struct db_command db_machine_command_table[] = {
{"tlb", db_sh5_tlb, 0, 0},
@@ -378,7 +378,7 @@
#define DTLB_REG(r) (0x800000 + ((r) * 16))
static void
-db_sh5_tlb(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
+db_sh5_tlb(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
{
register_t tlbreg;
ptel_t ptel;
@@ -430,7 +430,7 @@
}
static void
-db_sh5_fpr(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
+db_sh5_fpr(db_expr_t addr, int have_addr, db_expr_t count, const char *modif)
{
struct switchframe sw, *swp;
struct lwp *l;
diff -r ddae10261666 -r 6607084fdc85 sys/arch/sh5/sh5/db_memrw.c
--- a/sys/arch/sh5/sh5/db_memrw.c Fri Jun 03 15:11:14 2005 +0000
+++ b/sys/arch/sh5/sh5/db_memrw.c Fri Jun 03 15:18:38 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_memrw.c,v 1.3 2003/08/10 22:22:31 scw Exp $ */
+/* $NetBSD: db_memrw.c,v 1.4 2005/06/03 15:18:38 he Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.3 2003/08/10 22:22:31 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.4 2005/06/03 15:18:38 he Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -116,7 +116,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 *)(intptr_t)addr;
extern char etext[];
@@ -131,21 +131,21 @@
}
if (size == 8) {
- *((register_t*)dst) = *((register_t*)data);
+ *((register_t*)dst) = *((const register_t*)data);
if (in_text)
asm volatile("ocbp %0, 0; synci" :: "r"(dst));
return;
}
if (size == 4) {
- *((int*)dst) = *((int*)data);
+ *((int*)dst) = *((const int*)data);
if (in_text)
asm volatile("ocbp %0, 0; synci" :: "r"(dst));
return;
}
if (size == 2) {
- *((short*)dst) = *((short*)data);
+ *((short*)dst) = *((const short*)data);
if (in_text)
asm volatile("ocbp %0, 0; synci" :: "r"(dst));
return;
Home |
Main Index |
Thread Index |
Old Index