adapt to ddb constification

This commit is contained in:
drochner 2005-06-01 19:30:11 +00:00
parent 6b17417999
commit 1be856bcd9
2 changed files with 11 additions and 11 deletions

View File

@ -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 @@ int db_active;
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_mach_cpu(addr, have_addr, count, modif)
db_expr_t addr;
int have_addr;
db_expr_t count;
char * modif;
const char * modif;
{
struct cpu_info *ci;
if (!have_addr) {

View File

@ -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 @@ db_read_bytes(vaddr_t addr, size_t size, char *data)
* 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 @@ db_write_text(vaddr_t addr, size_t size, char *data)
* 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 @@ db_write_bytes(vaddr_t addr, size_t size, char *data)
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;
}