Skip to content

Commit

Permalink
x86, nop: Make the ASM_NOP* macros work from assembly
Browse files Browse the repository at this point in the history
Make the ASM_NOP* macros work in actual assembly files.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1334794610-5546-2-git-send-email-hpa@zytor.com
  • Loading branch information
H. Peter Anvin authored and H. Peter Anvin committed Apr 19, 2012
1 parent d405c60 commit 4632601
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/include/asm/nops.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@
#define P6_NOP8 0x0f,0x1f,0x84,0x00,0,0,0,0
#define P6_NOP5_ATOMIC P6_NOP5

#ifdef __ASSEMBLY__
#define _ASM_MK_NOP(x) .byte x
#else
#define _ASM_MK_NOP(x) ".byte " __stringify(x) "\n"
#endif

#if defined(CONFIG_MK7)
#define ASM_NOP1 _ASM_MK_NOP(K7_NOP1)
Expand Down

0 comments on commit 4632601

Please sign in to comment.