summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-06-17 20:15:58 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-06-17 20:15:58 +0000
commit2b640ba4b8a0007821677fc9f3cf9e856d53417e (patch)
treeb68204a1c5a33a93980a7903bc5cb4a906af5938 /firmware/target/hosted
parent69028d5d31384a0a97bd42081cacb01eb5d52793 (diff)
downloadrockbox-2b640ba4b8a0007821677fc9f3cf9e856d53417e.tar.gz
rockbox-2b640ba4b8a0007821677fc9f3cf9e856d53417e.tar.bz2
rockbox-2b640ba4b8a0007821677fc9f3cf9e856d53417e.zip
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
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/sdl/thread-sdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c
index 5ef9867b23..1a683911d7 100644
--- a/firmware/target/hosted/sdl/thread-sdl.c
+++ b/firmware/target/hosted/sdl/thread-sdl.c
@@ -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)