2007-10-17 16:04:38 +00:00
|
|
|
#ifdef __ASSEMBLY__
|
|
|
|
|
2009-11-27 15:06:16 +00:00
|
|
|
#include <asm/asm.h>
|
2007-10-17 16:04:38 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
.macro LOCK_PREFIX
|
|
|
|
1: lock
|
|
|
|
.section .smp_locks,"a"
|
2010-04-21 15:08:14 +00:00
|
|
|
.balign 4
|
|
|
|
.long 1b - .
|
2007-10-17 16:04:38 +00:00
|
|
|
.previous
|
|
|
|
.endm
|
|
|
|
#else
|
|
|
|
.macro LOCK_PREFIX
|
|
|
|
.endm
|
|
|
|
#endif
|
|
|
|
|
2011-05-17 22:29:13 +00:00
|
|
|
.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
|
|
|
|
|
2007-10-17 16:04:38 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|