From f6de0d4083a4fcb6da57f271e1f8ccaf715e571d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 6 Oct 2007 15:01:37 +0000 Subject: 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 --- firmware/export/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/export/thread.h') 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; \ -- cgit v1.2.3