Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 1 | #ifdef __ASSEMBLY__ |
2 | |||||
Jan Beulich | 99063c0 | 2009-11-27 15:06:16 +0000 | [diff] [blame] | 3 | #include <asm/asm.h> |
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 4 | |
5 | #ifdef CONFIG_SMP | ||||
6 | .macro LOCK_PREFIX | ||||
Eric Dumazet | ceb7b40 | 2012-01-03 17:35:40 +0100 | [diff] [blame] | 7 | 672: lock |
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 8 | .section .smp_locks,"a" |
Jan Beulich | 5967ed8 | 2010-04-21 16:08:14 +0100 | [diff] [blame] | 9 | .balign 4 |
Eric Dumazet | ceb7b40 | 2012-01-03 17:35:40 +0100 | [diff] [blame] | 10 | .long 672b - . |
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 11 | .previous |
12 | .endm | ||||
13 | #else | ||||
14 | .macro LOCK_PREFIX | ||||
15 | .endm | ||||
16 | #endif | ||||
17 | |||||
Fenghua Yu | 9072d11 | 2011-05-17 15:29:13 -0700 | [diff] [blame] | 18 | .macro altinstruction_entry orig alt feature orig_len alt_len |
Andy Lutomirski | 59e97e4 | 2011-07-13 09:24:10 -0400 | [diff] [blame] | 19 | .long \orig - . |
20 | .long \alt - . | ||||
Fenghua Yu | 9072d11 | 2011-05-17 15:29:13 -0700 | [diff] [blame] | 21 | .word \feature |
22 | .byte \orig_len | ||||
23 | .byte \alt_len | ||||
24 | .endm | ||||
25 | |||||
Adrian Bunk | 7e02cb9 | 2007-10-17 18:04:38 +0200 | [diff] [blame] | 26 | #endif /* __ASSEMBLY__ */ |