summaryrefslogtreecommitdiffstats
path: root/firmware/export/thread.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-06 15:01:37 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-06 15:01:37 +0000
commitf6de0d4083a4fcb6da57f271e1f8ccaf715e571d (patch)
treed9ff262690167784c0c65d9c1eb2a3ad2e97b479 /firmware/export/thread.h
parenta5133307c79c24c5809a498818f45addefdf252b (diff)
downloadrockbox-f6de0d4083a4fcb6da57f271e1f8ccaf715e571d.tar.gz
rockbox-f6de0d4083a4fcb6da57f271e1f8ccaf715e571d.zip
Discontinue any use of 'swp(b)' on PP5020. While clocking is stable, some testing revealed this instruction can still cause problems without concurrent access. Make sure mpegplayer is safe while not using spinlock (no longer atomic) between cores to protect the stream byte counters - use nonwrapping head and tail pointers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15005 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/thread.h')
-rw-r--r--firmware/export/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h
index e16baa2256..7c683ddde5 100644
--- a/firmware/export/thread.h
+++ b/firmware/export/thread.h
@@ -150,7 +150,7 @@ struct core_entry {
*/
/* Macros generate better code than an inline function is this case */
-#if defined (CPU_PP) || defined (CPU_ARM)
+#if (defined (CPU_PP) || defined (CPU_ARM)) && CONFIG_CPU != PP5020
#define test_and_set(x_, v_) \
({ \
uint32_t old; \