Re: [PATCH v1] LoongArch: Handle special PC in unwind_next_frame()

From: Jinyang He

Date: Wed Nov 26 2025 - 21:53:24 EST


On 2025-11-27 09:53, Bibo Mao wrote:


Just be curious, it is the same orc unwind method. why is clean with file arch/x86/kernel/unwind_orc.c, however there is special handling bt_address() in file arch/loongarch/kernel/unwind_orc.c ?

I'm not familiar with x86. Does it also copies exception handler to
other address like LoongArch? When backtrace to the copied exception
handler, its ORC info is not collected. The bt_address finds a
shadow PC to get the right ORC info and go on.

Thanks,
Jinyang