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/b5f163f3a8de
branches:  trunk
changeset: 581699:b5f163f3a8de
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jun 03 22:04:27 2005 +0000

description:
Adapt to ddb constification.

diffstat:

 sys/arch/sun2/sun2/db_memrw.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 9623cef79acf -r b5f163f3a8de sys/arch/sun2/sun2/db_memrw.c
--- a/sys/arch/sun2/sun2/db_memrw.c     Fri Jun 03 22:03:51 2005 +0000
+++ b/sys/arch/sun2/sun2/db_memrw.c     Fri Jun 03 22:04:27 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_memrw.c,v 1.5 2005/01/22 15:36:09 chs Exp $ */
+/*     $NetBSD: db_memrw.c,v 1.6 2005/06/03 22:04:27 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.5 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.6 2005/06/03 22:04:27 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;
@@ -169,7 +169,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;
 
@@ -180,12 +180,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