]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: add backtrace support
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 5 Sep 2023 12:12:53 +0000 (13:12 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 9 Apr 2024 03:29:38 +0000 (11:29 +0800)
commite4f69492adfdd1c72c0d2d031fe2606efe125773
treed92bd265d0469269fad8dec0b6817f953dcb14aa
parent069d07396e30aa9be396c1dd3fc158ac199e6843
riscv: add backtrace support

When debugging, it is useful to have a backtrace to find
out what is in the call stack as the previous function (RA)
may not have been the culprit.

Since this adds size to the build, do not add it by default
and avoid putting it in the SPL build if not needed.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Tested-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/Kconfig
arch/riscv/Makefile
arch/riscv/cpu/start.S
arch/riscv/lib/interrupts.c