[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190801194348.GA6059@avx2>
Date: Thu, 1 Aug 2019 22:43:48 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: kirill.shutemov@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, jing.lin@...el.com, bp@...en8.de,
tony.luck@...el.com, x86@...nel.org
Subject: Re: [PATCH] x86/asm: Add support for MOVDIR64B instruction
> +static inline void movdir64b(void *dst, const void *src)
> +{
> + /* movdir64b [rdx], rax */
> + asm volatile(".byte 0x66, 0x0f, 0x38, 0xf8, 0x02"
> + : "=m" (*(char *)dst)
^^^^^^^^^^
> + : "d" (src), "a" (dst));
> +}
Probably needs fake 64-byte type, so that compiler knows what is dirty.
Powered by blists - more mailing lists