Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe authored by Linus Torvalds on 22 July 2011, 02:17:23 UTC
Linux 3.0
Tip revision: 02f8c6a
alternative-asm.h
#ifdef __ASSEMBLY__

#include <asm/asm.h>

#ifdef CONFIG_SMP
	.macro LOCK_PREFIX
1:	lock
	.section .smp_locks,"a"
	.balign 4
	.long 1b - .
	.previous
	.endm
#else
	.macro LOCK_PREFIX
	.endm
#endif

.macro altinstruction_entry orig alt feature orig_len alt_len
	.align 8
	.quad \orig
	.quad \alt
	.word \feature
	.byte \orig_len
	.byte \alt_len
.endm

#endif  /*  __ASSEMBLY__  */
back to top