xtensa: add backtrace link from syscall exception

Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
chenxiaoyi 2024-09-24 11:40:56 +08:00 committed by Xiang Xiao
parent 430c79ff89
commit 1757ecc5c1

View file

@ -282,6 +282,13 @@ _xtensa_syscall_handler:
ps_setup 1 a0
/* Link the pre-exception frame for debugging. At this point, a12 points to the
* allocated and filled exception stack frame (old value of SP in case of
* an interrupt stack).
*/
exception_backtrace a12 1
movi ARG1, XTENSA_IRQ_SYSCALL /* Argument 1: IRQ number */
mov ARG2, a12 /* Argument 2: Top of stack = register save area */
CALL xtensa_irq_dispatch /* Call xtensa_int_decode */