Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 adapt to ddb constification



details:   https://anonhg.NetBSD.org/src/rev/7efcaa101169
branches:  trunk
changeset: 581459:7efcaa101169
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Jun 01 19:30:11 2005 +0000

description:
adapt to ddb constification

diffstat:

 sys/arch/amd64/amd64/db_interface.c |   8 ++++----
 sys/arch/amd64/amd64/db_memrw.c     |  14 +++++++-------
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (93 lines):

diff -r 038382d49488 -r 7efcaa101169 sys/arch/amd64/amd64/db_interface.c
--- a/sys/arch/amd64/amd64/db_interface.c       Wed Jun 01 19:16:37 2005 +0000
+++ b/sys/arch/amd64/amd64/db_interface.c       Wed Jun 01 19:30:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.3 2004/02/13 11:36:20 wiz Exp $     */
+/*     $NetBSD: db_interface.c,v 1.4 2005/06/01 19:30:11 drochner Exp $        */
 
 /*
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.3 2004/02/13 11:36:20 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.4 2005/06/01 19:30:11 drochner Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -69,7 +69,7 @@
 db_regs_t ddb_regs;    /* register state */
 db_regs_t *ddb_regp;
 
-void db_mach_cpu (db_expr_t, int, db_expr_t, char *);
+void db_mach_cpu (db_expr_t, int, db_expr_t, const char *);
 
 const struct db_command db_machine_command_table[] = {
 #ifdef MULTIPROCESSOR
@@ -274,7 +274,7 @@
        db_expr_t       addr;
        int             have_addr;
        db_expr_t       count;
-       char *          modif;
+       const char *    modif;
 {
        struct cpu_info *ci;
        if (!have_addr) {
diff -r 038382d49488 -r 7efcaa101169 sys/arch/amd64/amd64/db_memrw.c
--- a/sys/arch/amd64/amd64/db_memrw.c   Wed Jun 01 19:16:37 2005 +0000
+++ b/sys/arch/amd64/amd64/db_memrw.c   Wed Jun 01 19:30:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_memrw.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $        */
+/*     $NetBSD: db_memrw.c,v 1.2 2005/06/01 19:30:11 drochner Exp $    */
 
 /*-
  * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.2 2005/06/01 19:30:11 drochner Exp $");
 
 #include "opt_largepages.h"
 
@@ -106,7 +106,7 @@
  * pages writable temporarily.
  */
 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)
 {
        pt_entry_t *pte, oldpte, tmppte;
        vaddr_t pgva;
@@ -180,7 +180,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 etext;
        char *dst;
@@ -196,17 +196,17 @@
        dst = (char *)addr;
 
        if (size == 8) {
-               *((long *)dst) = *((long *)data);
+               *((long *)dst) = *((const long *)data);
                return;
        }
 
        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