Module: xenomai-head Branch: master Commit: c301fd3684d5a1bcd9c3c1de6c27bee82fde27d9 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c301fd3684d5a1bcd9c3c1de6c27bee82fde27d9
Author: Gilles Chanteperdrix <[email protected]> Date: Tue Oct 12 20:39:04 2010 +0200 arm: fix typo in armv6+ xnarch_xchg implementation --- include/asm-arm/atomic.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h index 038d201..e8945d7 100644 --- a/include/asm-arm/atomic.h +++ b/include/asm-arm/atomic.h @@ -66,7 +66,7 @@ __xnarch_xchg(volatile void *ptr, unsigned long x, int size) switch (size) { case 1: asm volatile("@ __xchg1\n" - "1: ldrexb %0, [%3]\n" + "1: ldrexb %0, [%4]\n" " strexb %1, %3, [%4]\n" " teq %1, #0\n" " bne 1b" @@ -77,7 +77,7 @@ __xnarch_xchg(volatile void *ptr, unsigned long x, int size) break; case 4: asm volatile("@ __xchg4\n" - "1: ldrex %0, [%3]\n" + "1: ldrex %0, [%4]\n" " strex %1, %3, [%4]\n" " teq %1, #0\n" " bne 1b" _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
