parisc/unwind: fix unwinder when CONFIG_64BIT is enabled
authorSven Schnelle <svens@stackframe.org>
Sat, 9 Oct 2021 21:15:17 +0000 (23:15 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 1 Nov 2021 06:35:58 +0000 (07:35 +0100)
commit8e0ba125c2bf1030af3267058019ba86da96863f
tree719fbcabea67f1a7fd6bdf5a9957ca561ee42c2a
parent8779e05ba8aaffec1829872ef9774a71f44f6580
parisc/unwind: fix unwinder when CONFIG_64BIT is enabled

With 64 bit kernels unwind_special() is not working because
it compares the pc to the address of the function descriptor.
Add a helper function that compares pc with the dereferenced
address. This fixes all of the backtraces on my c8000. Without
this changes, a lot of backtraces are missing in kdb or the
show-all-tasks command from /proc/sysrq-trigger.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/unwind.c