repo.or.cz
/
linux-btrfs-devel.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git]
/
arch
/
x86
/
include
/
asm
/
alternative-asm.h
blob
091508b533b46810603bb3dfa86a207d24e1e9c0
1
#ifdef __ASSEMBLY__
2
3
#include <asm/asm.h>
4
5
#ifdef CONFIG_SMP
6
.
macro LOCK_PREFIX
7
1
:
lock
8
.
section
.
smp_locks
,
"a"
9
.
balign
4
10
.
long
1
b
- .
11
.
previous
12
.
endm
13
#else
14
.
macro LOCK_PREFIX
15
.
endm
16
#endif
17
18
.
macro altinstruction_entry orig alt feature orig_len alt_len
19
.
long
\orig
- .
20
.
long
\a
lt
- .
21
.
word
\f
eature
22
.
byte \orig_len
23
.
byte
\a
lt_len
24
.
endm
25
26
#endif
/* __ASSEMBLY__ */