diff options
author | Corey Minyard <cminyard@mvista.com> | 2017-08-10 20:27:39 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-09-06 11:01:52 +0200 |
commit | 866b6a89c6d1876fce25c152ef9f887b41ffcf7f (patch) | |
tree | ee1d5a144e4ca31cfbc6d569bbce8cc493d53a2e /arch/mips/include/asm/asm.h | |
parent | MIPS: Make SAVE_SOME more standard (diff) | |
download | linux-866b6a89c6d1876fce25c152ef9f887b41ffcf7f.tar.xz linux-866b6a89c6d1876fce25c152ef9f887b41ffcf7f.zip |
MIPS: Add DWARF unwinding to assembly
This will allow kdump dumps to work correclty with MIPS and
future DWARF unwinding of the stack to give accurate tracebacks.
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/16990/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/asm.h')
-rw-r--r-- | arch/mips/include/asm/asm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 859cf7048347..81fae23ce7cd 100644 --- a/arch/mips/include/asm/asm.h +++ b/arch/mips/include/asm/asm.h @@ -55,6 +55,7 @@ .type symbol, @function; \ .ent symbol, 0; \ symbol: .frame sp, 0, ra; \ + .cfi_startproc; \ .insn /* @@ -66,12 +67,14 @@ symbol: .frame sp, 0, ra; \ .type symbol, @function; \ .ent symbol, 0; \ symbol: .frame sp, framesize, rpc; \ + .cfi_startproc; \ .insn /* * END - mark end of function */ #define END(function) \ + .cfi_endproc; \ .end function; \ .size function, .-function |