2021-06-04 15:56:25

by Segher Boessenkool

[permalink] [raw]
Subject: Re: [RFC] LKMM: Add volatile_if()

On Fri, Jun 04, 2021 at 03:56:16PM +0200, Peter Zijlstra wrote:
> Urgh, I see. Compiler can't really help in that case either I'm afraid.
> They'll never want to modify loads that originate in an asm().

We never *can* change an asm template. That is part of the fundamental
properties of inline asm. We cannot even parse it!


Segher