arm/backtrace: use sp unwind if FRAME_POINTER is enabled on thumb mode

GCC toolchain Bug 92172 - ARM Thumb2 frame pointers inconsistent with clang

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92172

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-08-03 12:43:12 +08:00 committed by Xiang Xiao
parent f20cd0295f
commit d501e01eef

View File

@ -65,7 +65,11 @@ endif
ifeq ($(CONFIG_SCHED_BACKTRACE),y)
ifeq ($(CONFIG_FRAME_POINTER),y)
CMN_CSRCS += arm_backtrace_fp.c
ifeq ($(CONFIG_ARM_THUMB),y)
CMN_CSRCS += arm_backtrace_thumb.c
else
CMN_CSRCS += arm_backtrace_fp.c
endif
else
CMN_CSRCS += arm_backtrace_thumb.c
endif