Date: Thu, 25 Apr 2013 06:28:19 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249881 - head/sys/mips/mips Message-ID: <201304250628.r3P6SJvJ026784@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304250628.r3P6SJvJ026784>