Skip to content
Snippets Groups Projects
Unverified Commit 23c1075a authored by Kefeng Wang's avatar Kefeng Wang Committed by Palmer Dabbelt
Browse files

riscv: Drop const annotation for sp


The const annotation should not be used for 'sp', or it will
become read only and lead to bad stack output.

Fixes: dec82277 ("riscv: stacktrace: Move register keyword to beginning of declaration")
Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent a5e13c6d
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <asm/stacktrace.h> #include <asm/stacktrace.h>
register const unsigned long sp_in_global __asm__("sp"); register unsigned long sp_in_global __asm__("sp");
#ifdef CONFIG_FRAME_POINTER #ifdef CONFIG_FRAME_POINTER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment