Re: [PATCH v2 RESEND] x86/asm: Force native_apic_mem_read to use mov
From: Adam Dunlap
Date: Mon Oct 03 2022 - 19:07:40 EST
[resent with plain text]
Thanks for all the responses. Is the consensus that we should use the
readl function here or instead use inline assembly directly as in the patch
I originally sent out:
asm_inline("movl %1, %0" : "=r"(out) : "m"(*addr));
? The readl function has this exact same code, I'm just not sure
which version fits better stylistically.
On Mon, Oct 3, 2022 at 4:01 PM Adam Dunlap <acdunlap@xxxxxxxxxx> wrote:
>
> Thanks for all the responses. Is the consensus that we should use the
> readl function here or instead use inline assembly directly as in the patch
> I originally sent out:
>
> asm_inline("movl %1, %0" : "=r"(out) : "m"(*addr));
>
> ? The readl function has this exact same code, I'm just not sure
> which version fits better stylistically.