OSDN Git Service

x86/asm: Add _ASM_BYTES() macro for a .byte ... opcode sequence
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Mon, 10 May 2021 09:09:39 +0000 (02:09 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 10 May 2021 10:33:28 +0000 (12:33 +0200)
commitd88be187a6e6f3a97dfa7ddc500bb9ca191b3772
tree9ed3c850fd256ab6133f2ef676c784deb6dce7c2
parentbe5bb8021c9731f5593de6419ae35d3f16a3e497
x86/asm: Add _ASM_BYTES() macro for a .byte ... opcode sequence

Make it easy to create a sequence of bytes that can be used in either
assembly proper on in a C asm() statement.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510090940.924953-3-hpa@zytor.com
arch/x86/include/asm/asm.h