diff options
author | imp <imp@FreeBSD.org> | 2013-04-25 06:28:19 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2013-04-25 06:28:19 +0000 |
commit | c75545d74104ff42fa4eee01aaff9ade00e13376 (patch) | |
tree | 2c5ba776134dcd5b9baa8e6b2f6dec35f9748fe6 /sys/mips | |
parent | b155a8ef4e69c155e8c38d20db8ed40c609dea68 (diff) | |
download | FreeBSD-src-c75545d74104ff42fa4eee01aaff9ade00e13376.zip FreeBSD-src-c75545d74104ff42fa4eee01aaff9ade00e13376.tar.gz |
Use the defines from pcb.h over the ones from regnum.h for this 'C'
code. In theory, the ones from regnum.h should be used only for
assembler code.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/mips/db_trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/mips/mips/db_trace.c b/sys/mips/mips/db_trace.c index 062ad30..c53c349 100644 --- a/sys/mips/mips/db_trace.c +++ b/sys/mips/mips/db_trace.c @@ -423,9 +423,9 @@ db_trace_thread(struct thread *thr, int count) } else { ctx = kdb_thr_ctx(thr); - sp = (register_t)ctx->pcb_context[PREG_SP]; - pc = (register_t)ctx->pcb_context[PREG_PC]; - ra = (register_t)ctx->pcb_context[PREG_RA]; + sp = (register_t)ctx->pcb_context[PCB_REG_SP]; + pc = (register_t)ctx->pcb_context[PCB_REG_PC]; + ra = (register_t)ctx->pcb_context[PCB_REG_RA]; } stacktrace_subr(pc, sp, ra, |