svn commit: r249881 - head/sys/mips/mips
Warner Losh
imp at FreeBSD.org
Thu Apr 25 06:28:19 UTC 2013
Author: imp
Date: Thu Apr 25 06:28:19 2013
New Revision: 249881
URL: http://svnweb.freebsd.org/changeset/base/249881
Log:
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.
Modified:
head/sys/mips/mips/db_trace.c
Modified: head/sys/mips/mips/db_trace.c
==============================================================================
--- head/sys/mips/mips/db_trace.c Thu Apr 25 06:05:43 2013 (r249880)
+++ head/sys/mips/mips/db_trace.c Thu Apr 25 06:28:19 2013 (r249881)
@@ -423,9 +423,9 @@ db_trace_thread(struct thread *thr, int
} 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,
More information about the svn-src-all
mailing list