Re: remove the last set_fs() in common code, and remove it for x86 and powerpc v3
From: Segher Boessenkool <hidden>
Date: 2020-09-10 17:29:19
Also in:
linux-arch, linux-fsdevel, lkml
From: Segher Boessenkool <hidden>
Date: 2020-09-10 17:29:19
Also in:
linux-arch, linux-fsdevel, lkml
On Thu, Sep 10, 2020 at 03:31:53PM +0000, David Laight wrote:
quoted
quoted
asm volatile ("" : "+r" (eax)); // So here eax must contain the value set by the "xxxxx" instructions.No, the register eax will contain the value of the eax variable. In the asm; it might well be there before or after the asm as well, but none of that is guaranteed.Perhaps not 'guaranteed', but very unlikely to be wrong. It doesn't give gcc much scope for not generating the desired code.
Wanna bet? :-) Correct is correct. Anything else is not. Segher