samuelbritt/6210-prj — Issue #4: Main thread issues longjmp() before setjmp()
Author: samuelbritt
Created: 2012-01-27 08:50:49+00:00
State: open

Main thread starts timer->handler->schedule->longjmp but never issues setjmp first.

setjmp (for the main thread) is called in gtthread_app_exit(), which is, in general, after the first timer interrupt. schedule() is called on the timer interrupts, and schedule() calls longjmp(). Looks like the original author was just banking on not much code between gtthread_app_init() and gtthread_app_exit().