Re: [PATCH v3] powerpc/irq: Fix missing r2 clobber in PCREL inline assembly

Madhavan Srinivasan <[email protected]>
Newsgroups gmane.linux.ports.ppc.embedded
Message-ID <178598971878.942627.14667171310466300671.b4-ty__15616.4317902707$1785989849$gmane$org@linux.ibm.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.