From 369149e740466dafef07dafc06754688dc34defb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 25 Apr 2013 06:28:19 +0000 Subject: [PATCH] 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. --- sys/mips/mips/db_trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/mips/mips/db_trace.c b/sys/mips/mips/db_trace.c index 062ad30cb4c7..c53c3492bdf2 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,