Skip to content

Commit ceb7b40

Browse files
Eric DumazetIngo Molnar
authored andcommitted
x86: Fix atomic64_xxx_cx8() functions
It appears about all functions in arch/x86/lib/atomic64_cx8_32.S are wrong in case cmpxchg8b must be restarted, because LOCK_PREFIX macro defines a label "1" clashing with other local labels : 1: some_instructions LOCK_PREFIX cmpxchg8b (%ebp) jne 1b / jumps to beginning of LOCK_PREFIX ! A possible fix is to use a magic label "672" in LOCK_PREFIX asm definition, similar to the "671" one we defined in LOCK_PREFIX_HERE. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Jan Beulich <JBeulich@suse.com> Cc: Christoph Lameter <cl@linux.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/1325608540.2320.103.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent cdcd629 commit ceb7b40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/x86/include/asm/alternative-asm.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
#ifdef CONFIG_SMP
66
.macro LOCK_PREFIX
7-
1: lock
7+
672: lock
88
.section .smp_locks,"a"
99
.balign 4
10-
.long 1b - .
10+
.long 672b - .
1111
.previous
1212
.endm
1313
#else

0 commit comments

Comments
 (0)