RIOT-OS/RIOT — pull request #245 by LudwigOrtmann (2013-10-16 14:32:17+00:00)
Title: fix signal handler context switch

This is a somewhat embarrassing commit as it turns out the assembler code never worked in RIOT. The test program I used to write that code didn't have pointers, so swapcontext got pointers to pointers in RIOT instead...
In any case I simplified the code while I was at it.

Due to this patch the forced debug output is not needed anymore.
Also, the state update for the BSDs only became relevant now ;-)

A side effect of this patch is that valgrind now starts whining a lot once the trampoline code was executed once (at least in the default-native project). I'm still trying to figure out how to fix this. In any case this only allows for more successful executions as the respective execution would have led to a segfault before.

Note:
It turns out RIOT does not need asynchronous context switches all that much, as only execution paths without these can have worked in native up to now. That is, context switches needed to happen in a blocking call.