summaryrefslogtreecommitdiff
path: root/packages/uclibc/uclibc-0.9.27/thumb-swp.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/uclibc/uclibc-0.9.27/thumb-swp.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/uclibc/uclibc-0.9.27/thumb-swp.patch')
-rw-r--r--packages/uclibc/uclibc-0.9.27/thumb-swp.patch102
1 files changed, 0 insertions, 102 deletions
diff --git a/packages/uclibc/uclibc-0.9.27/thumb-swp.patch b/packages/uclibc/uclibc-0.9.27/thumb-swp.patch
deleted file mode 100644
index 89171f735d..0000000000
--- a/packages/uclibc/uclibc-0.9.27/thumb-swp.patch
+++ /dev/null
@@ -1,102 +0,0 @@
---- uClibc-0.9.27/libc/sysdeps/linux/arm/bits/atomicity.h.orig 2005-08-09 13:12:59.663734027 -0700
-+++ uClibc-0.9.27/libc/sysdeps/linux/arm/bits/atomicity.h 2005-08-09 17:54:14.581605661 -0700
-@@ -31,12 +31,23 @@
- int tmp2;
- int result;
- __asm__ ("\n"
-+#if defined(__thumb__)
-+ "\t.align 0\n"
-+ "\tbx pc\n"
-+ "\tnop\n"
-+ "\t.arm\n"
-+#endif
- "0:\tldr\t%0,[%3]\n\t"
- "add\t%1,%0,%4\n\t"
- "swp\t%2,%1,[%3]\n\t"
- "cmp\t%0,%2\n\t"
- "swpne\t%1,%2,[%3]\n\t"
- "bne\t0b"
-+#if defined(__thumb__)
-+ "\torr %1, pc, #1\n"
-+ "\tbx %1\n"
-+ "\t.force_thumb"
-+#endif
- : "=&r" (result), "=&r" (tmp1), "=&r" (tmp2)
- : "r" (mem), "r"(val)
- : "cc", "memory");
-@@ -51,12 +62,23 @@
- int tmp2;
- int tmp3;
- __asm__ ("\n"
-+#if defined(__thumb__)
-+ "\t.align 0\n"
-+ "\tbx pc\n"
-+ "\tnop\n"
-+ "\t.arm\n"
-+#endif
- "0:\tldr\t%0,[%3]\n\t"
- "add\t%1,%0,%4\n\t"
- "swp\t%2,%1,[%3]\n\t"
- "cmp\t%0,%2\n\t"
- "swpne\t%1,%2,[%3]\n\t"
- "bne\t0b"
-+#if defined(__thumb__)
-+ "\torr %1, pc, #1\n"
-+ "\tbx %1\n"
-+ "\t.force_thumb"
-+#endif
- : "=&r" (tmp1), "=&r" (tmp2), "=&r" (tmp3)
- : "r" (mem), "r"(val)
- : "cc", "memory");
-@@ -68,6 +90,12 @@
- {
- int result, tmp;
- __asm__ ("\n"
-+#if defined(__thumb__)
-+ "\t.align 0\n"
-+ "\tbx pc\n"
-+ "\tnop\n"
-+ "\t.arm\n"
-+#endif
- "0:\tldr\t%1,[%2]\n\t"
- "mov\t%0,#0\n\t"
- "cmp\t%1,%4\n\t"
-@@ -78,6 +106,11 @@
- "bne\t0b\n\t"
- "mov\t%0,#1\n"
- "1:"
-+#if defined(__thumb__)
-+ "\torr %1, pc, #1\n"
-+ "\tbx %1\n"
-+ "\t.force_thumb"
-+#endif
- : "=&r" (result), "=&r" (tmp)
- : "r" (p), "r" (newval), "r" (oldval)
- : "cc", "memory");
---- uClibc-0.9.27/libpthread/linuxthreads/sysdeps/arm/pt-machine.h.orig 2005-08-09 14:16:50.204774778 -0700
-+++ uClibc-0.9.27/libpthread/linuxthreads/sysdeps/arm/pt-machine.h 2005-08-09 17:55:54.027863420 -0700
-@@ -39,9 +39,24 @@
- {
- register unsigned int ret;
-
-+#if defined(__thumb__)
-+ void *pc;
-+ __asm__ __volatile__(
-+ ".align 0\n"
-+ "\tbx pc\n"
-+ "\tnop\n"
-+ "\t.arm\n"
-+ "\tswp %0, %2, [%3]\n"
-+ "\torr %1, pc, #1\n"
-+ "\tbx %1\n"
-+ "\t.force_thumb"
-+ : "=r"(ret), "=r"(pc)
-+ : "0"(1), "r"(spinlock));
-+#else
- __asm__ __volatile__("swp %0, %1, [%2]"
- : "=r"(ret)
- : "0"(1), "r"(spinlock));
-+#endif
-
- return ret;
- }