Switch iPod 3G to use EABI toolchain. Make necessary threading changes to avoid use of stack after switching to idle stack.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26898 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2010-06-17 20:15:58 +00:00
parent 69028d5d31
commit 2b640ba4b8
5 changed files with 54 additions and 33 deletions

View file

@ -630,6 +630,11 @@ void remove_thread(unsigned int thread_id)
void thread_exit(void)
{
remove_thread(THREAD_ID_CURRENT);
/* This should never and must never be reached - if it is, the
* state is corrupted */
THREAD_PANICF("thread_exit->K:*R",
thread_id_entry(THREAD_ID_CURRENT));
while (1);
}
void thread_wait(unsigned int thread_id)