]> git.baikalelectronics.ru Git - kernel.git/commit
csky: stacktrace supported.
authorGuo Ren <ren_guo@c-sky.com>
Sun, 9 Dec 2018 06:18:05 +0000 (14:18 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 31 Dec 2018 15:12:22 +0000 (23:12 +0800)
commit730932b83c0092ee01f6bff71a0546cb4ea18245
tree733fef9d2126b7323d4ec80e62e0c3ea583e01f7
parenta36ae45455049ecb005d1b0847470eae187a05f0
csky: stacktrace supported.

The gcc option "-mbacktrace" will push fp(r8),lr into stack and we could
unwind the stack with:
fp = *fp
lr = (unsigned int *)fp[1]

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/Kconfig
arch/csky/Makefile
arch/csky/include/asm/thread_info.h
arch/csky/kernel/Makefile
arch/csky/kernel/process.c
arch/csky/kernel/stacktrace.c [new file with mode: 0644]