• Johannes Weiner's avatar
    xtensa: use correct stack pointer for stack traces · 28a0ce7f
    Johannes Weiner authored
    Right now, the xtensa stacktrace code reads the _current_ kernel stack
    pointer if nothing is supplied.  With debugging facilities like sysrq
    this means that the backtrace of the sysrq-handler is printed instead
    of a trace of the given task's stack.
    
    When no stack pointer is specified in show_trace() and show_stack(),
    use the stack pointer that comes with the handed in task descriptor to
    make stack traces more useful.
    Signed-off-by: default avatarJohannes Weiner <jw@emlix.com>
    Signed-off-by: default avatarChris Zankel <chris@zankel.net>
    28a0ce7f
traps.c 12 KB