From 02a4802d3e6237291707204646f6792b140f9f3e Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Tue, 27 Mar 2007 20:41:10 +0000 Subject: [PATCH] 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 --- firmware/thread.c | 6 ++++++ 1 file changed, 6 insertions(+) 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