arm64: stacktrace: Factor out common unwind()
authorKalesh Singh <kaleshsingh@google.com>
Tue, 26 Jul 2022 07:37:38 +0000 (00:37 -0700)
committerMarc Zyngier <maz@kernel.org>
Tue, 26 Jul 2022 09:48:43 +0000 (10:48 +0100)
commitf51e7146740514347d6c5526a2c393e224a19c0d
tree0cb8753590feee1b3d6bc054f44177ee7c3cee4e
parent5b1b08619f50422c3e43d1fd7af257595a9e4a67
arm64: stacktrace: Factor out common unwind()

Move unwind() to stacktrace/common.h, and as a result
the kernel unwind_next() to asm/stacktrace.h. This allow
reusing unwind() in the implementation of the nVHE HYP
stack unwinder, later in the series.

Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220726073750.3219117-6-kaleshsingh@google.com
arch/arm64/include/asm/stacktrace.h
arch/arm64/include/asm/stacktrace/common.h
arch/arm64/kernel/stacktrace.c