swapcontext rewrite broke some software

David Xu davidxu at freebsd.org
Thu Apr 18 07:49:47 UTC 2013


On 2013/04/16 21:24, Oliver Pinter wrote:
> Hi!
>
> After this commit:
>
> commit ac0cfc7fcb1b51ee6aeacfd676fa6dfbe11eefb5
> Author: davidxu <davidxu at FreeBSD.org>
> Date:   Wed Apr 10 02:40:03 2013 +0000
>
>      swapcontext wrapper can not be implemented in C, the stack pointer saved in
>      the context becomes invalid when the function returns, same as setjmp,
>      it must be implemented in assemble language, see discussions in PR
>      misc/177624.
>
> Some* software not found the swapcontext functions after this commit.
> Please add a sentence to UPDATING file and/or bump the
> __FreeBSD_version to reflect this change.
>
>
> * qemu
>

Hi,

The change is reverted.

Regards,
David Xu



More information about the freebsd-current mailing list