diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2015-12-04 11:02:26 +0000 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-11 15:57:00 +0800 |
commit | 2f478c1abcc07611671c5fee4bd10974dde476ab (patch) | |
tree | 83e89429b087150fe31e985ad1a9e57500956efa /samples | |
parent | c0f49bdceea7d2f0cfe1c6f857e4e1cfa919382a (diff) |
arm64: Modify stack trace and dump for use with irq_stack
This patch allows unwind_frame() to traverse from interrupt stack to task
stack correctly. It requires data from a dummy stack frame, created
during irq_stack_entry(), added by a later patch.
A similar approach is taken to modify dump_backtrace(), which expects to
find struct pt_regs underneath any call to functions marked __exception.
When on an irq_stack, the struct pt_regs is stored on the old task stack,
the location of which is stored in the dummy stack frame.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
[james.morse: merged two patches, reworked for per_cpu irq_stacks, and
no alignment guarantees, added irq_stack definitions]
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 132cd887b5c54758d04bf25c52fa48f45e843a30)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions