Fix thread_yield by avoiding the (too) early re-enablement of IRQ,
that is: before the newly selected thread's context is totally restored
Prevent the compiler to add an unwanted prologue in thread_yield()
Fix the race condition when an interruption occured at the beginning
of thread_yield(), i.e.: just after SR(R2) was pushed but before
the rest of the suspended thread's context was pushed!
Fixed comments
Merge pull request #1618 from rousselk/msp430-fix-thread-yield

Fix thread_yield() on MSP430 platforms