Skip to content
Commit 407c76d5 authored by Ioannis Glaropoulos's avatar Ioannis Glaropoulos
Browse files

tests: arm thread swap: save and restore callee-saved in subroutine



Temporarily save and restore all callee-saved registers
in the sub-routine, not only the frame pointer, to avoid
errors if compiler chooses to use them in the alternative
thread function. The callee-saved regs are restored after
the alternative thread switches back in.

Signed-off-by: default avatarIoannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
parent ff1594cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment