OSDN Git Service

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)
commit0ea2dc7cd668be5475babecaf6fdeaa464e2847b
tree733fef9d2126b7323d4ec80e62e0c3ea583e01f7
parent859e5f45cbb33fe5d591a8e429667f0b7d4f4be8
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]