All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/asm: macro improvements in <asm/asm.h>
@ 2021-05-10  9:09 H. Peter Anvin
  2021-05-10  9:09 ` [PATCH 1/3] x86/asm: have the __ASM_FORM macros handle commas in arguments H. Peter Anvin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: H. Peter Anvin @ 2021-05-10  9:09 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, Borislav Petkov, Peter Zijlstra
  Cc: Linux Kernel Mailing List, H. Peter Anvin

From: "H. Peter Anvin (Intel)" <hpa@zytor.com>

This patchset adds the following improvements to <asm/asm.h>:

1. Makes the __ASM_FORM() macros accept arguments with commas. This allows
   the __ASM_FORM() macros to be used directly in header files for
   macros that can be used from either C or assembly, even for
   instructions that have multiple operands.
2. Add an _ASM_BYTES() macro for the delicate job of hand-crafting
   instructions out of bytes.
3. Replace the _ASM_MK_NOPS() macro in <asm/nops.h> with _ASM_BYTES().

The change to the tools/ directory is mainly because <asm/nops.h> now
depends on <asm/asm.h>.

--- 
 arch/x86/include/asm/asm.h        |  23 ++---
 arch/x86/include/asm/nops.h       |  24 ++---
 tools/arch/x86/include/asm/asm.h  | 189 ++++++++++++++++++++++++++++++++++++++
 tools/arch/x86/include/asm/nops.h |  24 ++---
 4 files changed, 221 insertions(+), 39 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-05-10 12:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  9:09 [PATCH 0/3] x86/asm: macro improvements in <asm/asm.h> H. Peter Anvin
2021-05-10  9:09 ` [PATCH 1/3] x86/asm: have the __ASM_FORM macros handle commas in arguments H. Peter Anvin
2021-05-10 10:59   ` [tip: x86/asm] x86/asm: Have " tip-bot2 for H. Peter Anvin (Intel)
2021-05-10  9:09 ` [PATCH 2/3] x86/asm: add _ASM_BYTES() macro for a .byte ... opcode sequence H. Peter Anvin
2021-05-10 10:59   ` [tip: x86/asm] x86/asm: Add " tip-bot2 for H. Peter Anvin (Intel)
2021-05-10  9:09 ` [PATCH 3/3] x86/asm: use _ASM_BYTES() in <asm/nops.h> H. Peter Anvin
2021-05-10 10:59   ` [tip: x86/asm] x86/asm: Use " tip-bot2 for H. Peter Anvin (Intel)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.