summaryrefslogtreecommitdiff
path: root/firmware/target
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
parent69028d5d31384a0a97bd42081cacb01eb5d52793 (diff)
downloadrockbox-2b640ba4b8a0007821677fc9f3cf9e856d53417e.tar.gz
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')
-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)
630void thread_exit(void) 630void thread_exit(void)
631{ 631{
632 remove_thread(THREAD_ID_CURRENT); 632 remove_thread(THREAD_ID_CURRENT);
633 /* This should never and must never be reached - if it is, the
634 * state is corrupted */
635 THREAD_PANICF("thread_exit->K:*R",
636 thread_id_entry(THREAD_ID_CURRENT));
637 while (1);
633} 638}
634 639
635void thread_wait(unsigned int thread_id) 640void thread_wait(unsigned int thread_id)