Don't clobber callee save registers r12 & r13 in swapcontext. They were saved in the stack, but the subsequent swapcontext would return to the earlier stack frame and never restore them. Fixes puff
Don't clobber callee save registers r12 & r13 in swapcontext. They were saved in the stack, but the subsequent swapcontext would return to the earlier stack frame and never restore them. Fixes puffs with default compiler flags on amd64.
Thanks to Mihai Chelaru for providing access to an amd64 machine for debugging this problem.
show more ...
|