On Thu, May 28, 2026 at 06:13:26PM +0000, David Matlack wrote:

> Let's put these in tools/arch/arm64/include/asm/io.h so that the tools
> headers are more aligned with the kernel headers, and so that the arm64
> io.h overrides are done in the same way as the x86 overrides in
> tools/arch/x86/include/asm/io.h.
> 
> Something like this (untested):

Okay, the disassembly says it works:

    1db8:       ca080108        eor     x8, x8, x8
    1dbc:       b5000008        cbnz    x8, 1dbc <readl+0x58>
    1dc0:       f9000fe8        str     x8, [sp, #24]

Jason

Reply via email to