Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm Catch up with constification.



details:   https://anonhg.NetBSD.org/src/rev/ed63f3aa24f4
branches:  trunk
changeset: 581582:ed63f3aa24f4
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jun 02 19:33:04 2005 +0000

description:
Catch up with constification.

diffstat:

 sys/arch/arm/arm32/db_interface.c       |  12 ++++++------
 sys/arch/arm/arm32/db_machdep.c         |   8 ++++----
 sys/arch/arm/include/arm32/db_machdep.h |   6 +++---
 3 files changed, 13 insertions(+), 13 deletions(-)

diffs (103 lines):

diff -r 652cd37545ce -r ed63f3aa24f4 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Thu Jun 02 19:32:03 2005 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Thu Jun 02 19:33:04 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.36 2005/06/02 17:45:59 he Exp $     */
+/*     $NetBSD: db_interface.c,v 1.37 2005/06/02 19:33:04 uwe Exp $    */
 
 /* 
  * Copyright (c) 1996 Scott K. Stevens
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.36 2005/06/02 17:45:59 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.37 2005/06/02 19:33:04 uwe Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -224,7 +224,7 @@
 }
 
 static void
-db_write_text(vaddr_t addr, size_t size, char *data)
+db_write_text(vaddr_t addr, size_t size, const char *data)
 {        
        struct pmap *pmap = pmap_kernel();
        pd_entry_t *pde, oldpde, tmppde;
@@ -313,7 +313,7 @@
  * Write bytes to kernel address space for debugger.
  */
 void
-db_write_bytes(vaddr_t addr, size_t size, char *data)
+db_write_bytes(vaddr_t addr, size_t size, const char *data)
 {
        extern char kernel_text[];
        extern char etext[];
@@ -333,10 +333,10 @@
        }
 
        if (size == 4 && (addr & 3) == 0 && ((uintptr_t)data & 3) == 0)
-               *((int*)dst) = *((int*)data);
+               *((int*)dst) = *((const int *)data);
        else
        if (size == 2 && (addr & 1) == 0 && ((uintptr_t)data & 1) == 0)
-               *((short*)dst) = *((short*)data);
+               *((short*)dst) = *((const short *)data);
        else {
                loop = size;
                while (loop-- > 0) {
diff -r 652cd37545ce -r ed63f3aa24f4 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Thu Jun 02 19:32:03 2005 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Thu Jun 02 19:33:04 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.8 2003/07/15 00:24:41 lukem Exp $     */
+/*     $NetBSD: db_machdep.c,v 1.9 2005/06/02 19:33:04 uwe Exp $       */
 
 /* 
  * Copyright (c) 1996 Mark Brinicombe
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.8 2003/07/15 00:24:41 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.9 2005/06/02 19:33:04 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -48,7 +48,7 @@
        db_expr_t       addr;
        int             have_addr;
        db_expr_t       count;
-       char            *modif;
+       const char     *modif;
 {
        int s;
        
@@ -65,7 +65,7 @@
        db_expr_t       addr;
        int             have_addr;
        db_expr_t       count;
-       char            *modif;
+       const char     *modif;
 {
        struct trapframe *frame;
 
diff -r 652cd37545ce -r ed63f3aa24f4 sys/arch/arm/include/arm32/db_machdep.h
--- a/sys/arch/arm/include/arm32/db_machdep.h   Thu Jun 02 19:32:03 2005 +0000
+++ b/sys/arch/arm/include/arm32/db_machdep.h   Thu Jun 02 19:33:04 2005 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: db_machdep.h,v 1.1 2002/01/05 22:41:48 chris Exp $ */
+/* $NetBSD: db_machdep.h,v 1.2 2005/06/02 19:33:04 uwe Exp $ */
 
 #ifndef _ARM32_DB_MACHDEP_H_
 #define _ARM32_DB_MACHDEP_H_
 
 #include <arm/db_machdep.h>
 
-void db_show_panic_cmd __P((db_expr_t, int, db_expr_t, char *));
-void db_show_frame_cmd __P((db_expr_t, int, db_expr_t, char *));
+void db_show_panic_cmd __P((db_expr_t, int, db_expr_t, const char *));
+void db_show_frame_cmd __P((db_expr_t, int, db_expr_t, const char *));
 
 #endif



Home | Main Index | Thread Index | Old Index