forked from len0rd/rockbox
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
This commit is contained in:
parent
290a812e71
commit
02a4802d3e
1 changed files with 6 additions and 0 deletions
|
|
@ -69,23 +69,29 @@ static long cores_locked IBSS_ATTR;
|
||||||
#define LOCK(...) do { } while (test_and_set(&cores_locked, 1))
|
#define LOCK(...) do { } while (test_and_set(&cores_locked, 1))
|
||||||
#define UNLOCK(...) cores_locked = 0
|
#define UNLOCK(...) cores_locked = 0
|
||||||
|
|
||||||
|
#warning "Core locking mechanism should be fixed on H10/4G!"
|
||||||
inline void lock_cores(void)
|
inline void lock_cores(void)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
if (!cores[CURRENT_CORE].lock_issued)
|
if (!cores[CURRENT_CORE].lock_issued)
|
||||||
{
|
{
|
||||||
LOCK();
|
LOCK();
|
||||||
cores[CURRENT_CORE].lock_issued = true;
|
cores[CURRENT_CORE].lock_issued = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void unlock_cores(void)
|
inline void unlock_cores(void)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
if (cores[CURRENT_CORE].lock_issued)
|
if (cores[CURRENT_CORE].lock_issued)
|
||||||
{
|
{
|
||||||
cores[CURRENT_CORE].lock_issued = false;
|
cores[CURRENT_CORE].lock_issued = false;
|
||||||
UNLOCK();
|
UNLOCK();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Conserve IRAM
|
/* Conserve IRAM
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue