On Mon, 03 Aug 2026 10:58:43 +0530, Saket Kumar Bhaskar wrote:
> In CONFIG_PPC_KERNEL_PCREL mode, r2 is no longer reserved for the TOC
> pointer and is available as a caller-saved register [0].
> 
> Both call_do_irq() and call_do_softirq() use inline assembly to call
> functions with stack switching, but fail to list r2 in their clobber
> lists. This causes the compiler to assume r2 is preserved across these
> calls, leading to register corruption when the called functions
> (__do_irq and __do_softirq) clobber r2.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/irq: Fix missing r2 clobber in PCREL inline assembly
      https://git.kernel.org/powerpc/c/00be69070d91d2be978e752bb117a0a4db0e1281

cheers

Reply via email to