Re: [PATCH v3 1/9] s390/alternatives: Add new ALT_TYPE_PERCPU type

From: Heiko Carstens

Date: Wed May 20 2026 - 10:30:43 EST


On Wed, May 20, 2026 at 03:50:45PM +0200, Heiko Carstens wrote:
> On Wed, May 20, 2026 at 01:43:17PM +0100, David Laight wrote:
> > On Wed, 20 May 2026 11:22:35 +0200
> > Heiko Carstens <hca@xxxxxxxxxxxxx> wrote:
> > I'm sure it is possible get the preprocessor to extract the register number
> > for you.
> > The exception table logic almost certainly already does it.
> > (The x86 version certainly does - and that is far less trivial.)
>
> That's true, the s390 extable logic is doing the same. However I failed to
> feed the extracted register number as constant into the same inline assembly
> it was extracted from.

Thinking about this again, I guess it should indeed be possible, and
my initial approach was wrong. Let me try again.