9e5de65076
The arm ABI defines that the value in register r0 is used as the return value of a function. To indicate success for get/set/swapcontext (return value of 0) the register r0 must contain zero at the end of the function call. Thus set r0 to zero and store it in the context. This context is restored later and indicate successful execution, because r0 is 0. The order registers are stored has changed so that only one additional instruction (mov r0, #0) needs to be added to fix the return value bug for get/set/swapcontext. Signed-off-by: Volker Christian <me@vchrist.at> |
||
---|---|---|
.. | ||
include/libucontext | ||
defs.h | ||
getcontext.S | ||
makecontext.c | ||
setcontext.S | ||
swapcontext.S | ||
trampoline.c |