summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2011-04-21 19:45:30 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2011-04-21 19:45:30 (GMT)
commitd53ae4b2067e5e7c4f5a0b9a234a89e0582c2e84 (patch)
tree0feee07c0a043065d54383ca019e960e93e06f78 /uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h
parenta9697885d7d80894c454cfbe69adbcba1088c84b (diff)
downloadopenipcam-d53ae4b2067e5e7c4f5a0b9a234a89e0582c2e84.zip
openipcam-d53ae4b2067e5e7c4f5a0b9a234a89e0582c2e84.tar.gz
openipcam-d53ae4b2067e5e7c4f5a0b9a234a89e0582c2e84.tar.bz2
gcc 3.4.6 requirements
Diffstat (limited to '')
-rw-r--r--uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h b/uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h
index 77fd92b..feeb7e0 100644
--- a/uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h
+++ b/uClinux-2.4.20-uc1/include/asm-armnommu/proc-armv/system.h
@@ -182,12 +182,12 @@ extern __inline__ unsigned long __xchg(unsigned long x, volatile void *ptr, int
break;
#else
case 1: __asm__ __volatile__ ("swpb %0, %1, [%2]"
- : "=r" (ret)
+ : "=&r" (ret)
: "r" (x), "r" (ptr)
: "memory");
break;
case 4: __asm__ __volatile__ ("swp %0, %1, [%2]"
- : "=r" (ret)
+ : "=&r" (ret)
: "r" (x), "r" (ptr)
: "memory");
break;