LoongArch: Adjust PC value when unwind next frame in unwinder
authorJinyang He <hejinyang@loongson.cn>
Tue, 17 Jan 2023 03:42:16 +0000 (11:42 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 17 Jan 2023 03:42:16 +0000 (11:42 +0800)
commite2f27392275c7ffceb4afac1567eb325722b9ae1
treeaf6240939a091efe2689efa358e2c8bf23ed12ee
parent3200983fa8e2c8aa17ed911b617b4a248bcb1267
LoongArch: Adjust PC value when unwind next frame in unwinder

When state->first is not set, the PC is a return address in the previous
frame. We need to adjust its value in case overflow to the next symbol.

Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/unwind_prologue.c