mirror of
https://git.yoctoproject.org/poky
synced 2026-03-31 02:02:25 +02:00
This patch includes the update of patch upstream status of the following recipes (50 in all): grub pciutils setserial dhcp iproute2 libnss-mdns nfs-utils openssl portmap busybox coreutils dbus dropbear ncurses readline sysfsutils sysvinit tinylogin udev update-rc.d util-linux elfutils file pkgconfig syslinux ubootchart yaffs2 findutils gamin hdparm libaio libzypp parted procps sat-solver screen sed sysklogd tcp-wrapper time zypper attr boost createrepo gnutls hal js libgcrypt libnl libusb-compat (From OE-Core rev: 1e6f767663b7d5fb6277fd2b214f4a50e24d4ffd) Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
56 lines
1.6 KiB
Diff
56 lines
1.6 KiB
Diff
Upstream-Status: Backport
|
|
|
|
8/17/2010 - rebased to 1.44 by Qing He <qing.he@intel.com>
|
|
|
|
diff --git a/boost/smart_ptr/detail/atomic_count_sync.hpp b/boost/smart_ptr/detail/atomic_count_sync.hpp
|
|
index b6359b5..78b1cc2 100644
|
|
--- a/boost/smart_ptr/detail/atomic_count_sync.hpp
|
|
+++ b/boost/smart_ptr/detail/atomic_count_sync.hpp
|
|
@@ -33,17 +33,46 @@ public:
|
|
|
|
long operator++()
|
|
{
|
|
+#ifdef __ARM_ARCH_7A__
|
|
+ int v1, tmp;
|
|
+ asm volatile ("1: \n\t"
|
|
+ "ldrex %0, %1 \n\t"
|
|
+ "add %0 ,%0, #1 \n\t"
|
|
+ "strex %2, %0, %1 \n\t"
|
|
+ "cmp %2, #0 \n\t"
|
|
+ "bne 1b \n\t"
|
|
+ : "=&r" (v1), "+Q"(value_), "=&r"(tmp)
|
|
+ );
|
|
+#else
|
|
return __sync_add_and_fetch( &value_, 1 );
|
|
+#endif
|
|
}
|
|
|
|
long operator--()
|
|
{
|
|
+#ifdef __ARM_ARCH_7A__
|
|
+ int v1, tmp;
|
|
+ asm volatile ("1: \n\t"
|
|
+ "ldrex %0, %1 \n\t"
|
|
+ "sub %0 ,%0, #1 \n\t"
|
|
+ "strex %2, %0, %1 \n\t"
|
|
+ "cmp %2, #0 \n\t"
|
|
+ "bne 1b \n\t"
|
|
+ : "=&r" (v1), "+Q"(value_), "=&r"(tmp)
|
|
+ );
|
|
+ return value_;
|
|
+#else
|
|
return __sync_add_and_fetch( &value_, -1 );
|
|
+#endif
|
|
}
|
|
|
|
operator long() const
|
|
{
|
|
+#if __ARM_ARCH_7A__
|
|
+ return value_;
|
|
+#else
|
|
return __sync_fetch_and_add( &value_, 0 );
|
|
+#endif
|
|
}
|
|
|
|
private:
|