libucontext/arch/arm
Volker Christian 9e5de65076 libucontext: Add patch fixing return values of get/set/swapcontext
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>
2024-08-07 17:44:43 -07:00
..
include/libucontext Added arm conditional vfp save/restore 2022-03-04 10:35:25 -08:00
defs.h Fixed empty TYPE(__proc) causing linker issues on 32-bit arm 2022-03-23 15:18:39 -07:00
getcontext.S Added arm conditional vfp save/restore 2022-03-04 10:35:25 -08:00
makecontext.c everywhere: drop _GNU_SOURCE requirement 2021-03-09 00:25:13 -07:00
setcontext.S Added arm conditional vfp save/restore 2022-03-04 10:35:25 -08:00
swapcontext.S libucontext: Add patch fixing return values of get/set/swapcontext 2024-08-07 17:44:43 -07:00
trampoline.c build: remove -DLIBUCONTEXT_ASSEMBLY 2021-01-08 03:11:25 -07:00