2007-10-17 10:04:38 -06:00
|
|
|
#ifdef __ASSEMBLY__
|
|
|
|
|
2009-11-27 08:06:16 -07:00
|
|
|
#include <asm/asm.h>
|
2007-10-17 10:04:38 -06:00
|
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
.macro LOCK_PREFIX
|
|
|
|
1: lock
|
|
|
|
.section .smp_locks,"a"
|
2010-04-21 09:08:14 -06:00
|
|
|
.balign 4
|
|
|
|
.long 1b - .
|
2007-10-17 10:04:38 -06:00
|
|
|
.previous
|
|
|
|
.endm
|
|
|
|
#else
|
|
|
|
.macro LOCK_PREFIX
|
|
|
|
.endm
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|