Skip to content
Commit b6569439 authored by Max Filippov's avatar Max Filippov
Browse files

xtensa: keep exception/interrupt stack continuous



Restore original a0 in the kernel exception stack frame. This way it
looks like the frame that got interrupt/exception did alloca (copy a0 and
a1 spilled under old stack to the new location as well) to save registers
and then did a call to handler.
The point where interrupt/exception was taken is not in the stack chain,
only in pt_regs (call4 from that address can be simulated to keep it in
the stack trace).

Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent de7c1c78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment