]> asedeno.scripts.mit.edu Git - linux.git/commit
mips: Save all registers when saving the frame
authorCorey Minyard <cminyard@mvista.com>
Thu, 10 Aug 2017 18:27:40 +0000 (13:27 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 6 Sep 2017 09:02:11 +0000 (11:02 +0200)
commit5b6b084728f78dadcdba7e48ecb88bc4dbfaa81a
tree2546694e4d579c68a0c88a67ad240bce156553d9
parent866b6a89c6d1876fce25c152ef9f887b41ffcf7f
mips: Save all registers when saving the frame

The MIPS frame save code was just saving a few registers, enough to
do a backtrace if every function set up a frame.  However, this is
not working if you are using DWARF unwinding, because most of the
registers are wrong.  This was causing kdump backtraces to be short
or bogus.

So save all the registers.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/16989/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/stacktrace.h