From 2b640ba4b8a0007821677fc9f3cf9e856d53417e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 17 Jun 2010 20:15:58 +0000 Subject: 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 --- firmware/target/hosted/sdl/thread-sdl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/target/hosted/sdl') 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) -- cgit v1.2.3