prattmic/F4OS — pull request #3 by ekawahyu (2012-08-09 07:16:33+00:00)
Title: bug fixed within start_task_switching()

Optimization level 2 and 3 (at assembler level) pop a wrong context due to the nature of restore_full_context(). In order to force the compiler to use BL instruction instead of optimizing it to B.W, one NOP instruction is added right after calling restore_full_context().

Optimization 0, 1, 2, 3, and s are now working (tested) and no need to be explicitly attached to particular functions