Date: Thu, 8 Aug 2019 16:37:32 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r350756 - head/lib/libproc Message-ID: <201908081637.x78GbW4s043955@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Thu Aug 8 16:37:32 2019 New Revision: 350756 URL: https://svnweb.freebsd.org/changeset/base/350756 Log: mips: Fix register target for SP setting in libproc Copy-paste-o from r233042 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D21188 Modified: head/lib/libproc/proc_regs.c Modified: head/lib/libproc/proc_regs.c ============================================================================== --- head/lib/libproc/proc_regs.c Thu Aug 8 15:38:57 2019 (r350755) +++ head/lib/libproc/proc_regs.c Thu Aug 8 16:37:32 2019 (r350756) @@ -138,7 +138,7 @@ proc_regset(struct proc_handle *phdl, proc_reg_t reg, #elif defined(__i386__) regs.r_esp = regvalue; #elif defined(__mips__) - regs.r_regs[PC] = regvalue; + regs.r_regs[SP] = regvalue; #elif defined(__powerpc__) regs.fixreg[1] = regvalue; #elif defined(__riscv)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908081637.x78GbW4s043955>