summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/db_interface.c
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-07-12 10:22:58 +0000
committerjchandra <jchandra@FreeBSD.org>2010-07-12 10:22:58 +0000
commitbb2d216b9a3031ec25d74c586cba760bd9f0f2e7 (patch)
tree9f08d15950ec386baf4647c9d12532b8dfdbae85 /sys/mips/mips/db_interface.c
parentf37b51f2667361ea39f13a08d0a3eac695c9b19b (diff)
downloadFreeBSD-src-bb2d216b9a3031ec25d74c586cba760bd9f0f2e7.zip
FreeBSD-src-bb2d216b9a3031ec25d74c586cba760bd9f0f2e7.tar.gz
Merge jmallett@'s n64 work into HEAD
Initial set of ddb changes to support n64 Reviewed by: imp Obtained from: jmallett (http://svn.freebsd.org/base/user/jmallett/octeon)
Diffstat (limited to 'sys/mips/mips/db_interface.c')
-rw-r--r--sys/mips/mips/db_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/mips/db_interface.c b/sys/mips/mips/db_interface.c
index 455c03e..7ab1ec6 100644
--- a/sys/mips/mips/db_interface.c
+++ b/sys/mips/mips/db_interface.c
@@ -115,12 +115,12 @@ int (*do_db_log_stack_trace_cmd)(char *);
static int
db_frame(struct db_variable *vp, db_expr_t *valuep, int op)
{
- int *reg;
+ register_t *reg;
if (kdb_frame == NULL)
return (0);
- reg = (int *)((uintptr_t)kdb_frame + (db_expr_t)vp->valuep);
+ reg = (register_t *)((uintptr_t)kdb_frame + (size_t)(intptr_t)vp->valuep);
if (op == DB_VAR_GET)
*valuep = *reg;
else
OpenPOWER on IntegriCloud