summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2007-03-27 20:41:10 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2007-03-27 20:41:10 +0000
commit02a4802d3e6237291707204646f6792b140f9f3e (patch)
tree727e62be006f3fe4a433e6b40713f583bf46dfe4 /firmware
parent290a812e714aa7d1703bb304a2ca6e084611282d (diff)
downloadrockbox-02a4802d3e6237291707204646f6792b140f9f3e.tar.gz
rockbox-02a4802d3e6237291707204646f6792b140f9f3e.zip
A temporary fix to crashing on some dual core targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12941 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index a0e9c8293c..5cab03e3db 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -69,23 +69,29 @@ static long cores_locked IBSS_ATTR;
#define LOCK(...) do { } while (test_and_set(&cores_locked, 1))
#define UNLOCK(...) cores_locked = 0
+#warning "Core locking mechanism should be fixed on H10/4G!"
inline void lock_cores(void)
{
+#if 0
if (!cores[CURRENT_CORE].lock_issued)
{
LOCK();
cores[CURRENT_CORE].lock_issued = true;
}
+#endif
}
inline void unlock_cores(void)
{
+#if 0
if (cores[CURRENT_CORE].lock_issued)
{
cores[CURRENT_CORE].lock_issued = false;
UNLOCK();
}
+#endif
}
+
#endif
/* Conserve IRAM